TroutKing Posted May 9, 2012 Posted May 9, 2012 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? Quote
fixo Posted May 9, 2012 Posted May 9, 2012 See DIMDEC variable ThisDrawing.SetVariable "DIMDEC", 3 ??? not sure about Quote
MSasu Posted May 9, 2012 Posted May 9, 2012 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. Quote
TroutKing Posted May 9, 2012 Author Posted May 9, 2012 Ah! I think I understand now. Thank you very much for your responses! It worked. Quote
Recommended Posts
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.