Returns or sets the document's distance display precision parameter.See Rhino's DocumentProperties command (Units and Page Units windows) for details.
Rhino.UnitDistanceDisplayPrecision ([intPrecision [, blnModelUnits]])
intPrecision |
可选参数。Number.The distance display precision.If the current distance display mode is Decimal, then intPrecision is the number of decimal places.If the current distance display mode is Fractional (including Feet and Inches), then the denominator = (1/2)^intPrecision.Use UnitDistanceDisplayMode to get the current distance display mode. |
blnModelUnits |
可选参数。Boolean.Return or modify the document's model units (True) or the document's page units (False).The default is True. |
Number |
If intPrecision is not specified, the current distance display precision if successful. |
Number |
If intPrecision is specified, the previous distance display precision if successful. |
Null |
如果执行不成功或出错,返回空值。 |
Dim intPrecison
intPrecision = 3
Rhino.UnitDistanceDisplayPrecision intPrecision