UnitCustomUnitSystem - PYTHON 不支持

Sets the document's units system to a user-defined system.This overrides the units system set using the UnitSystem method.See Rhino's DocumentProperties command (Units and Page Units windows) for details.

语法

Rhino.UnitCustomUnitSystem (dblUnits [, blnScale [, strName [, blnModelUnits]]])

参数

dblUnits

Required.Number.The number of units per meter.

blnScale

可选参数。Boolean.Scale existing geometry based on the new unit system.If not specified, any existing geometry is not scaled (False).

strName

可选参数。字符串。The name of the new unit system.If not specified, the name "Custom" will be assigned.

blnModelUnits

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

返回值

Number

The previous units system if successful.See UnitSystem for details.

Null

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

示例

Dim dblUnits, intUnitSystem

dblUnits = 10.0

intUnitSystem = Rhino.UnitCustomUnitSystem(dblUnits, False, "Decimeter")

同见

UnitAbsoluteTolerance

UnitAngleTolerance

UnitDistanceDisplayMode

UnitDistanceDisplayPrecision

UnitRelativeTolerance

UnitSystem