UnitUtils Members


The UnitUtils type exposes the following members.

Methods

Name Description
Public method Static member Convert(Double, DisplayUnitType, DisplayUnitType) Obsolete.
Converts a value from one display unit to another, such as square feet to square meters.
Public method Static member Convert(Double, ForgeTypeId, ForgeTypeId)
Converts a value from one unit to another, such as square feet to square meters.
Public method Static member ConvertFromInternalUnits(Double, DisplayUnitType) Obsolete.
Converts a value from Revit's internal units to a given display unit.
Public method Static member ConvertFromInternalUnits(Double, ForgeTypeId)
Converts a value from Revit's internal units to a given unit.
Public method Static member ConvertToInternalUnits(Double, DisplayUnitType) Obsolete.
Converts a value from a given display unit to Revit's internal units.
Public method Static member ConvertToInternalUnits(Double, ForgeTypeId)
Converts a value from a given unit to Revit's internal units.
Public method Static member GetAllSpecs
Gets the identifiers of all available specs.
Public method Static member GetAllUnits
Gets the identifiers of all available units.
Public method Static member GetDisplayUnitType Obsolete.
Gets the DisplayUnitType value corresponding to the given unit identifier.
Public method Static member GetSpecTypeId Obsolete.
Gets the ForgeTypeId identifying the spec corresponding to the given unit type.
Public method Static member GetSymbolTypeId Obsolete.
Gets the ForgeTypeId identifying the given symbol.
Public method Static member GetTypeCatalogString(DisplayUnitType) Obsolete.
Gets the string used in type catalogs to identify a given display unit.
Public method Static member GetTypeCatalogString(UnitType) Obsolete.
Gets the string used in type catalogs to identify a given unit type.
Public method Static member GetTypeCatalogStringForSpec
Gets the string used in type catalogs to identify a given spec.
Public method Static member GetTypeCatalogStringForUnit
Gets the string used in type catalogs to identify a given unit.
Public method Static member GetUnitGroup(ForgeTypeId)
Gets the unit group for a given spec.
Public method Static member GetUnitGroup(UnitType) Obsolete.
Gets the unit group for a given unit type.
Public method Static member GetUnitSymbolType Obsolete.
Gets the UnitSymbolType value corresponding to the given symbol identifier.
Public method Static member GetUnitType Obsolete.
Gets the UnitType value corresponding to the given spec identifier.
Public method Static member GetUnitTypeId Obsolete.
Gets the ForgeTypeId identifying the given unit.
Public method Static member GetValidDisplayUnits Obsolete.
Gets all valid display units.
Public method Static member GetValidDisplayUnits(UnitType) Obsolete.
Gets all valid display units for a given unit type.
Public method Static member GetValidUnits
Gets the identifiers of all valid units for a given spec.
Public method Static member GetValidUnitTypes Obsolete.
Gets all valid unit types.
Public method Static member IsSpec
Checks whether a ForgeTypeId identifies a spec.
Public method Static member IsSymbol
Checks whether a ForgeTypeId identifies a symbol.
Public method Static member IsUnit
Checks whether a ForgeTypeId identifies a unit.
Public method Static member IsValidDisplayUnit(DisplayUnitType) Obsolete.
Checks whether a display unit is valid.
Public method Static member IsValidDisplayUnit(UnitType, DisplayUnitType) Obsolete.
Checks whether a display unit is valid for a given unit type.
Public method Static member IsValidUnit
Checks whether a unit is valid for a given spec.
Public method Static member IsValidUnitType Obsolete.
Checks whether a unit type is valid.

See Also