2021 Members
Changes 8
M

UnitUtils

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