The UnitUtils type exposes the following members.
Methods
Name | Description | |
---|---|---|
Convert |
Converts a value from one unit to another, such as square feet to square meters.
|
|
ConvertFromInternalUnits |
Converts a value from Revit's internal units to a given unit.
|
|
ConvertToInternalUnits |
Converts a value from a given unit to Revit's internal units.
|
|
GetAllDisciplines |
Gets the identifiers of all available disciplines.
|
|
GetAllMeasurableSpecs |
Gets the identifiers of all available measurable specs.
|
|
GetAllSpecs |
Obsolete.
Gets the identifiers of all available specs.
|
|
GetAllUnits |
Gets the identifiers of all available units.
|
|
GetDiscipline |
Gets the discipline for a given spec.
|
|
GetTypeCatalogStringForSpec |
Gets the string used in type catalogs to identify a given spec.
|
|
GetTypeCatalogStringForUnit |
Gets the string used in type catalogs to identify a given unit.
|
|
GetUnitGroup |
Obsolete.
Gets the unit group for a given spec.
|
|
GetValidUnits |
Gets the identifiers of all valid units for a given spec.
|
|
IsMeasurableSpec |
Checks whether a ForgeTypeId identifies a spec associated with units of measurement.
|
|
IsSpec |
Obsolete.
Checks whether a ForgeTypeId identifies a spec associated with units of measurement.
|
|
IsSymbol |
Checks whether a ForgeTypeId identifies a symbol.
|
|
IsUnit |
Checks whether a ForgeTypeId identifies a unit.
|
|
IsValidUnit |
Checks whether a unit is valid for a given spec.
|