2027 Members
Changes 0
M

UnitUtils Methods

Name Return Type Description
M Convert(Double, ForgeTypeId, ForgeTypeId) Double Converts a value from one unit to another, such as square feet to square meters.
M ConvertFromInternalUnits(Double, ForgeTypeId) Double Converts a value from Revit's internal units to a given unit.
M ConvertToInternalUnits(Double, ForgeTypeId) Double Converts a value from a given unit to Revit's internal units.
M GetAllDisciplines() IList<ForgeTypeId> Gets the identifiers of all available disciplines.
M GetAllMeasurableSpecs() IList<ForgeTypeId> Gets the identifiers of all available measurable specs.
M GetAllUnits() IList<ForgeTypeId> Gets the identifiers of all available units.
M GetDiscipline(ForgeTypeId) ForgeTypeId Gets the discipline for a given measurable spec.
M GetTypeCatalogStringForSpec(ForgeTypeId) String Gets the string used in type catalogs to identify a given measurable spec.
M GetTypeCatalogStringForUnit(ForgeTypeId) String Gets the string used in type catalogs to identify a given unit.
M GetValidUnits(ForgeTypeId) IList<ForgeTypeId> Gets the identifiers of all valid units for a given measurable spec.
M IsMeasurableSpec(ForgeTypeId) Boolean Checks whether a ForgeTypeId identifies a spec associated with units of measurement.
M IsSymbol(ForgeTypeId) Boolean Checks whether a ForgeTypeId identifies a symbol.
M IsUnit(ForgeTypeId) Boolean Checks whether a ForgeTypeId identifies a unit.
M IsValidUnit(ForgeTypeId, ForgeTypeId) Boolean Checks whether a unit is valid for a given measurable spec.