UnitUtils.ConvertFromInternalUnits
Description:
Converts a value from Revit's internal units to a given unit.
Converts a value from Revit's internal units to a given unit.
public static double ConvertFromInternalUnits(
double value,
ForgeTypeId unitTypeId
)
-
DoublevalueThe value to convert.
-
unitTypeIdIdentifier of the desired unit.
Return Value
The converted value.
The converted value.
-
The given value for value is not finite -or- unitTypeId is not a unit identifier. See UnitUtils.IsUnit(ForgeTypeId) and UnitUtils.GetUnitTypeId(DisplayUnitType).
-
A non-optional argument was null