Click or drag to resize

RhinoDocSetCustomUnitSystem Method

Changes the unit system to custom units and sets the custom unit scale.

Namespace:  Rhino
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 7.9
Syntax
public bool SetCustomUnitSystem(
	bool modelUnits,
	string customUnitName,
	double metersPerCustomUnit,
	bool scale
)

Parameters

modelUnits
Type: SystemBoolean
Set true to set values from the document's model unit system. Set false to set values from the document's page unit system.
customUnitName
Type: SystemString
The custom unit system name.
metersPerCustomUnit
Type: SystemDouble
The meters per custom unit scale.
scale
Type: SystemBoolean
Set true to scale existing objects.

Return Value

Type: Boolean
true if successful, false otherwise.
See Also