PDA

View Full Version : Command line for changing Dimension Precision?


archtechkurt
2008-07-16, 10:44 PM
Hi,

Was wondering if you can change the dimension precision (ie 1/16" to 1/32") with using the command line, essentially so you one can make a LSP to change it?

Thanks,
-K

michel.t
2008-07-17, 03:17 PM
The DIMDEC variable control that

Hi,

Was wondering if you can change the dimension precision (ie 1/16" to 1/32") with using the command line, essentially so you one can make a LSP to change it?

Thanks,
-K

archtechkurt
2008-07-17, 05:18 PM
I looked into that, but that only controls the decimal places allowed...

DIMDEC

"Sets the number of decimal places displayed for the primary units of a dimension. The precision is based on the units or angle format you have selected."

I am looking to change the precision, not units...

More ideas?

Thanks,
-K

archtechkurt
2008-07-17, 08:05 PM
AIDIMPREC

Seems to do it, just need to know how to get it to select all dims in a drawing!

-K

Lions60
2008-07-18, 03:48 PM
This will get all dimensions in a drawing, but i don't believe you can change their precision individually. You have to change the dimstyle associated to the dimension. So you may want to just tblsearch through your dimstyles and find the correct dimstyle and change the precision that way.

(setq dimensions (ssget "X" '((0 . "DIMENSION"))))

michel.t
2008-07-18, 04:10 PM
dimdec is for the precision...not the units...dimunit is for unit

after changing the variable value, just save the dimstyle and all dimensions with that style will change

AIDIMPREC

Seems to do it, just need to know how to get it to select all dims in a drawing!

-K