See DIMDEC variable
??? not sure aboutCode:ThisDrawing.SetVariable "DIMDEC", 3
Registered forum members do not see this ad.
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"
I realize LUNITS is for decimal use, but I cannot locate it's fractional counterpartCode: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
Any ideas?
See DIMDEC variable
??? not sure aboutCode:ThisDrawing.SetVariable "DIMDEC", 3
The soul is healed by being with children. - Fyodor Dostoyevsky, novelist (1821-1881)
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.
Regards,
Mircea
AutoCAD's happy user equation: FILEDIA + PICKADD² + PICKFIRST = 3
Registered forum members do not see this ad.
Ah! I think I understand now. Thank you very much for your responses! It worked.![]()
Bookmarks