LengthUnitFromCustomUnitSystem Method |
Namespace:
Rhino
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 9.0
Syntaxpublic static LengthUnit FromCustomUnitSystem(
string name,
double customUnitSize,
UnitSystem knownUnitSystem = UnitSystem.Meters
)
Public Shared Function FromCustomUnitSystem (
name As String,
customUnitSize As Double,
Optional knownUnitSystem As UnitSystem = UnitSystem.Meters
) As LengthUnit
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| Exception | Condition |
|---|
| ArgumentNullException | When name is null |
| ArgumentException | When customUnitSize is not a positive finite number |
See Also