2027 Method
Changes 5
M

UnitUtils.ConvertFromInternalUnits

Description:
Converts a value from Revit's internal units to a given unit.
public static double ConvertFromInternalUnits(
	double value,
	ForgeTypeId unitTypeId
)
  • Double
    value
    The value to convert.
  • unitTypeId
    Identifier of the desired unit.
Return Value Double 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