UnitUtils Members


The UnitUtils type exposes the following members.

Methods

Name Description
Public method Static member Convert
Converts a value from one display unit to another, such as square feet to square meters.
Public method Static member ConvertFromInternalUnits
Converts a value from Revit's internal units to a given display unit.
Public method Static member ConvertToInternalUnits
Converts a value from a given display unit to Revit's internal units.
Public method Static member GetTypeCatalogString(DisplayUnitType)
Gets the string used in type catalogs to identify a given display unit.
Public method Static member GetTypeCatalogString(UnitType)
Gets the string used in type catalogs to identify a given unit type.
Public method Static member GetUnitGroup
Gets the unit group for a given unit type.
Public method Static member GetValidDisplayUnits
Gets all valid display units.
Public method Static member GetValidDisplayUnits(UnitType)
Gets all valid display units for a given unit type.
Public method Static member GetValidUnitTypes
Gets all valid unit types.
Public method Static member IsValidDisplayUnit(DisplayUnitType)
Checks whether a display unit is valid.
Public method Static member IsValidDisplayUnit(UnitType, DisplayUnitType)
Checks whether a display unit is valid for a given unit type.
Public method Static member IsValidUnitType
Checks whether a unit type is valid.

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →