UnitDistanceDisplayPrecision - PYTHON 不支持

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

同见

UnitAbsoluteTolerance

UnitAngleTolerance

UnitCustomUnitSystem

UnitDistanceDisplayMode

UnitRelativeTolerance

UnitSystem