Jump to content

System variable to set architectural precision?


Recommended Posts

Posted

good afternoon

 

I'm having trouble tracking down a system variable.

 

When setting variables I am not able to set my "precision". After changing my units to architectural (which works OK in the following code) I then want to set the precision to 1/128"

 

 
Sub WHATEVER()
ThisDrawing.SetVariable "LUNITS", 4
ThisDrawing.SetVariable "INSUNITS", 1
ThisDrawing.SetVariable "LWUNITS", 0
ThisDrawing.SetVariable "MEASUREINIT", 0
ThisDrawing.SetVariable "LUNITS", 0.0078125 '<------- This does not work
End Sub

 

I realize LUNITS is for decimal use, but I cannot locate it's fractional counterpart

Any ideas?

Posted

See DIMDEC variable

ThisDrawing.SetVariable "DIMDEC", 3

??? not sure about

Posted

To get the 1/128 precision for Architectural units set the LUPREC system variable to 7. The said LUNITS controls only the mode of working units.

For angles there is the AUNITS and AUPREC pair.

Posted

Ah! I think I understand now. Thank you very much for your responses! It worked. :)

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