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
)
Public Function SetCustomUnitSystem (
modelUnits As Boolean,
customUnitName As String,
metersPerCustomUnit As Double,
scale As Boolean
) As Boolean
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:
Booleantrue if successful, false otherwise.
See Also