How to suppress zero feet/inch in DWG file?


  
 Applies To 
  
 Product(s):MICROSTATION
 Version(s):08.05.00.64
 Environment: N\A
 Area: Dimensions
 Subarea: Dim Styles
 Original Author:Bentley Technical Support Group
  

Problem

How to suppress zero feet/inch in DWG file?
Leading Zero option does not work in DWG file.


Solution

In AutoCAD it is called "Suppress Zero Inch" and can be accessed in the Dimension Style dialog box. In MicroStation, the "display sub units" flag must be turned on.

Zero Sub Unit suppression:
Key-in:
mdl load calculat; calculator mdlDimStyle_setBoolIntProp(mdlDimStyle_getActive (), X, 1078)
X=1 means show the Sub Unit value even if it is zero.
X=0 means hide the Sub Unit value even if it is zero.

Zero Master Unit suppression:
Key-in:
mdl load calculat; calculator mdlDimStyle_setBoolIntProp(dgnDimStyle_getActiveFromModelRef (0), X, 1041)
X=1 means show the Master Unit value even if it is zero.
X=0 means hide the Master Unit value if it is zero.

Notes:



See Also