Jump to content

Lisp Routine To Change Drawing Setup Dialog Box Values?


Recommended Posts

Posted

I have tried some routines to chance drawing units from inches to milimeters. It seem the unit is changed in my drawing, but it remains as inches in Drawing Setup dialog box. Thanks in advance.

Units.jpg

Posted

(setvar "INSUNITS" 4)

 

 

  • Like 1
Posted

This is what loads every time I open a drawing.

 

(setvar 'cmdecho 0)
(setvar 'INSUNITS 1)        	; Sets the Drawing units to inches (4 for mm)
(setvar 'THICKNESS 0) 	    	; Sets THICKNESS TO 0
(setvar 'CECOLOR "BYLAYER") 	; Sets color property to "BYLAYER."
(setvar 'CELTYPE "BYLAYER") 	; Sets linetype property to "BYLAYER."
(setvar 'CELWEIGHT -1)      	; Sets the lineweight to "BYLAYER."
(setvar 'CELTSCALE 1)       	; Sets the LTScale of new objects to 1.
(setvar 'plinetype 2)       	; convents all 2D polylines to optimized polylines  
(setvar 'auprec 4) 	        ; angular unit percision 0.0000
(setvar 'luprec 4) 	        ; linear unit percision 0.0000
(setvar 'selectionmodes 0)  	; Set Selection mode to 0
(setvar 'lunits 2)   	    	; Set Linear units to Decimal
(setvar 'perspective 0)	    	; Turn off Perspective view in current viewport
(setvar 'saveformat 8)		; Set save to 2010 DXF
(setvar 'nomutt 1)
(vl-cmdf "_.Style" "Standard" "Consolas" "" "" "" "" "")
(setvar 'nomutt 0)
(setvar 'cmdecho 1)

 

  • Like 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...