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")