Click or drag to resize

LengthUnitFromCustomUnitSystem Method

Creates a custom LengthUnit based on its size expressed on a known UnitSystem.

Namespace:  Rhino
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 9.0
Syntax
public static LengthUnit FromCustomUnitSystem(
	string name,
	double customUnitSize,
	UnitSystem knownUnitSystem = UnitSystem.Meters
)

Parameters

name
Type: SystemString
Name of the custom unit
customUnitSize
Type: SystemDouble
Meters per custom unit in case knownUnitSystem is omitted
knownUnitSystem (Optional)
Type: RhinoUnitSystem
A known unit system. Meters when omitted

Return Value

Type: LengthUnit

[Missing <returns> documentation for "M:Rhino.LengthUnit.FromCustomUnitSystem(System.String,System.Double,Rhino.UnitSystem)"]

Exceptions
ExceptionCondition
ArgumentNullExceptionWhen name is null
ArgumentExceptionWhen customUnitSize is not a positive finite number
See Also