Namespace:
Autodesk.Revit.DB
UnitUtils
Class
Description:
A utility class of functions related to units.
A utility class of functions related to units.
UnitUtils Class Members:
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. |
GetAllUnits | Gets the identifiers of all available units. |
GetDiscipline | Gets the discipline for a given measurable spec. |
GetTypeCatalogStringForSpec | Gets the string used in type catalogs to identify a given measurable spec. |
GetTypeCatalogStringForUnit | Gets the string used in type catalogs to identify a given unit. |
GetValidUnits | Gets the identifiers of all valid units for a given measurable spec. |
IsMeasurableSpec | 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 measurable spec. |