The UnitUtils type exposes the following members.

Methods

  NameDescription
Public methodStatic memberConvert(Double, DisplayUnitType, DisplayUnitType) Obsolete.
Converts a value from one display unit to another, such as square feet to square meters.
Public methodStatic memberConvert(Double, ForgeTypeId, ForgeTypeId)
Converts a value from one unit to another, such as square feet to square meters.
Public methodStatic memberConvertFromInternalUnits(Double, DisplayUnitType) Obsolete.
Converts a value from Revit's internal units to a given display unit.
Public methodStatic memberConvertFromInternalUnits(Double, ForgeTypeId)
Converts a value from Revit's internal units to a given unit.
Public methodStatic memberConvertToInternalUnits(Double, DisplayUnitType) Obsolete.
Converts a value from a given display unit to Revit's internal units.
Public methodStatic memberConvertToInternalUnits(Double, ForgeTypeId)
Converts a value from a given unit to Revit's internal units.
Public methodStatic memberGetAllSpecs
Gets the identifiers of all available specs.
Public methodStatic memberGetAllUnits
Gets the identifiers of all available units.
Public methodStatic memberGetDisplayUnitType Obsolete.
Gets the DisplayUnitType value corresponding to the given unit identifier.
Public methodStatic memberGetSpecTypeId Obsolete.
Gets the ForgeTypeId identifying the spec corresponding to the given unit type.
Public methodStatic memberGetSymbolTypeId Obsolete.
Gets the ForgeTypeId identifying the given symbol.
Public methodStatic memberGetTypeCatalogString(DisplayUnitType) Obsolete.
Gets the string used in type catalogs to identify a given display unit.
Public methodStatic memberGetTypeCatalogString(UnitType) Obsolete.
Gets the string used in type catalogs to identify a given unit type.
Public methodStatic memberGetTypeCatalogStringForSpec
Gets the string used in type catalogs to identify a given spec.
Public methodStatic memberGetTypeCatalogStringForUnit
Gets the string used in type catalogs to identify a given unit.
Public methodStatic memberGetUnitGroup(ForgeTypeId)
Gets the unit group for a given spec.
Public methodStatic memberGetUnitGroup(UnitType) Obsolete.
Gets the unit group for a given unit type.
Public methodStatic memberGetUnitSymbolType Obsolete.
Gets the UnitSymbolType value corresponding to the given symbol identifier.
Public methodStatic memberGetUnitType Obsolete.
Gets the UnitType value corresponding to the given spec identifier.
Public methodStatic memberGetUnitTypeId Obsolete.
Gets the ForgeTypeId identifying the given unit.
Public methodStatic memberGetValidDisplayUnits()()()() Obsolete.
Gets all valid display units.
Public methodStatic memberGetValidDisplayUnits(UnitType) Obsolete.
Gets all valid display units for a given unit type.
Public methodStatic memberGetValidUnits
Gets the identifiers of all valid units for a given spec.
Public methodStatic memberGetValidUnitTypes Obsolete.
Gets all valid unit types.
Public methodStatic memberIsSpec
Checks whether a ForgeTypeId identifies a spec.
Public methodStatic memberIsSymbol
Checks whether a ForgeTypeId identifies a symbol.
Public methodStatic memberIsUnit
Checks whether a ForgeTypeId identifies a unit.
Public methodStatic memberIsValidDisplayUnit(DisplayUnitType) Obsolete.
Checks whether a display unit is valid.
Public methodStatic memberIsValidDisplayUnit(UnitType, DisplayUnitType) Obsolete.
Checks whether a display unit is valid for a given unit type.
Public methodStatic memberIsValidUnit
Checks whether a unit is valid for a given spec.
Public methodStatic memberIsValidUnitType Obsolete.
Checks whether a unit type is valid.

See Also