Jump to content

Recommended Posts

Posted

When you type units in the command bar it brings up the box so you can change in to architectural and make it to the precision of 0'-0 1/64" is there a way to do this in lisp.

 

Thanks in advance for everything.

Posted

if you're units are already set to Architectural

(setvar "luprec" 6)

or if you're converting a real to a string

(rtos (getreal) 4 6)

Posted

Do a "Setvar" ? * look through the list for

 

"ANGBASE"

"ANGDIR"

"LUNITS"

"LUPREC"

"AUNITS"

"AUPREC"

 

Change your "Units" and then look at these variables again. Sometimes with lisp you need to work in the default angle directions as supplied by Autodesk.

Posted

Is there a system variable allowing me to change the units to mm?

Posted
Is there a system variable allowing me to change the units to mm?

Do you mean for UNITS, or for Dimensions? The only unit of measures are those shown in the UNITS dialog box (no special setting for metric).

 

LUNITS = Linear Units (1 Scientific, 2 Decimal, 3 Engineering, 4 Architectural, 5 Fractional)

LUPREC = Linear Unit Precision (number of decimal places / fraction precision)

 

DIMPOST = Specifies a text prefix or suffix (the default), or both, to the dimension measurement. For example, to establish a suffix for millimeters, set DIMPOST to mm; a distance of 19.2 units would be displayed as 19.2 mm. If you entered mm , the dimension would be displayed as "mm 19.2".

 

DIMLUNIT = Similar to LUNITS, but also has a value of 6.

 

Footpeg

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...