UnitDistanceDisplayMode - PYTHON 不支持

Returns or sets the document's distance display mode parameter.See Rhino's DocumentProperties command (Units and Page Units windows) for details.

语法

Rhino.UnitDistanceDisplayMode ([intMode [, blnModelUnits]])

参数

intMode

可选参数。Number.The distance display mode.The available distance display modes are as follows:

描述

0

Decimal

1

Fractional

2

Feet and inches (requires that the document's units system be set to either inches or feet.See UnitSystem for details.)

blnModelUnits

可选参数。Boolean.Return or modify the document's model units (True) or the document's page units (False).The default is True.

返回值

Number

If intMode is not specified, the current distance display mode if successful.

Number

If intMode is specified, the previous distance display mode if successful.

Null

如果执行不成功或出错,返回空值。

示例

Const rhUnitInches = 8

Const rhUnitDistanceDisplayFeetInches = 2

Dim intUnitSystem

intUnitSystem = Rhino.UnitSystem

If intUnitSystem = rhUnitInches Then

Rhino.UnitDistanceDisplayMode rhUnitDistanceDisplayFeetInches

End If

同见

UnitAbsoluteTolerance

UnitAngleTolerance

UnitCustomUnitSystem

UnitDistanceDisplayPrecision

UnitRelativeTolerance

UnitSystem