EUANS
Mechanical
- Nov 8, 2002
- 17
In thread559-118542 Stoker proposed a macro to simply toggle between metric (2 decimal place) & imperial (3 decimal place) dimensions. This macro has helped me enormously but doesn't do everything I would like it to do.
We predominantly use metric dimensions and unless otherwise stated on the drawing use the number of decimal places to denote the tolerance of individual dimensions.
For metric drawings:- X.XXXmm = +/-0.05mm ; X.XXmm = +/-0.1mm ; X.Xmm = +/-0.25mm
For imperial drawings;- X.XXXX" = +/-0.002" ; X.XXX" = +/-0.004" ; X.XX" = +/-0.01"
Therefore a typical drawing will have dimensions with various numbers of decimal places.
Stoker's macro switches all dimensions globally at a document setting level. Is there a way to modify the macro so that not only do the dimensions toggle between metric and imperial but depending on the number of decimal places a dimension has the appropriate metric/imperial equivalent is displayed?
X.XXXmm toggles to X.XXXX" and back to X.XXXmm
X.XXmm toggles to X.XXX" and back to X.XXmm
X.Xmm toggles to X.XX" and back to X.Xmm
To do this a global switch to document dimension settings can no longer be used. Instead, each dimension needs to be changed on an individual basis. I have no experience with macros/API and ask if anyone can confirm that this can be done & if so point me in the right direction.
We predominantly use metric dimensions and unless otherwise stated on the drawing use the number of decimal places to denote the tolerance of individual dimensions.
For metric drawings:- X.XXXmm = +/-0.05mm ; X.XXmm = +/-0.1mm ; X.Xmm = +/-0.25mm
For imperial drawings;- X.XXXX" = +/-0.002" ; X.XXX" = +/-0.004" ; X.XX" = +/-0.01"
Therefore a typical drawing will have dimensions with various numbers of decimal places.
Stoker's macro switches all dimensions globally at a document setting level. Is there a way to modify the macro so that not only do the dimensions toggle between metric and imperial but depending on the number of decimal places a dimension has the appropriate metric/imperial equivalent is displayed?
X.XXXmm toggles to X.XXXX" and back to X.XXXmm
X.XXmm toggles to X.XXX" and back to X.XXmm
X.Xmm toggles to X.XX" and back to X.Xmm
To do this a global switch to document dimension settings can no longer be used. Instead, each dimension needs to be changed on an individual basis. I have no experience with macros/API and ask if anyone can confirm that this can be done & if so point me in the right direction.