2022 Class Back to 2022
C

UnitUtils

Version comparison

Members across versions

35 members across 9 versions · 23 added later · 21 removed · 21 changed · 21 obsolete

Member-name color: stable · changed · removed · obsolete · added later

Member 2020 2021 2022 2023 2024 2025 2025.3 2026 2027
M Convert(Double, DisplayUnitType, DisplayUnitType)
same changed missing missing missing missing missing missing missing
M Convert(Double, ForgeTypeId, ForgeTypeId)
not yet introduced added same same same changed same same same
M ConvertFromInternalUnits(Double, DisplayUnitType)
same changed missing missing missing missing missing missing missing
M ConvertFromInternalUnits(Double, ForgeTypeId)
not yet introduced added same same same changed same same same
M ConvertToInternalUnits(Double, DisplayUnitType)
same changed missing missing missing missing missing missing missing
M ConvertToInternalUnits(Double, ForgeTypeId)
not yet introduced added same same same changed same same same
not yet introduced not yet introduced added same same changed same same same
not yet introduced not yet introduced added same same changed same same same
not yet introduced added changed missing missing missing missing missing missing
not yet introduced added same same same changed same same same
M GetDiscipline(ForgeTypeId)
not yet introduced not yet introduced added same same same same same same
M GetDisplayUnitType(ForgeTypeId)
not yet introduced added missing missing missing missing missing missing missing
M GetSpecTypeId(UnitType)
not yet introduced added missing missing missing missing missing missing missing
M GetSymbolTypeId(UnitSymbolType)
not yet introduced added missing missing missing missing missing missing missing
M GetTypeCatalogString(UnitType)
same changed missing missing missing missing missing missing missing
M GetTypeCatalogString(DisplayUnitType)
same changed missing missing missing missing missing missing missing
not yet introduced added same same same same same same same
not yet introduced added same same same same same same same
M GetUnitGroup(UnitType)
same changed missing missing missing missing missing missing missing
M GetUnitGroup(ForgeTypeId)
not yet introduced added changed missing missing missing missing missing missing
M GetUnitSymbolType(ForgeTypeId)
not yet introduced added missing missing missing missing missing missing missing
M GetUnitType(ForgeTypeId)
not yet introduced added missing missing missing missing missing missing missing
M GetUnitTypeId(DisplayUnitType)
not yet introduced added missing missing missing missing missing missing missing
M GetValidDisplayUnits(UnitType)
same changed missing missing missing missing missing missing missing
same changed missing missing missing missing missing missing missing
M GetValidUnits(ForgeTypeId)
not yet introduced added same same same same same same same
same changed missing missing missing missing missing missing missing
M IsMeasurableSpec(ForgeTypeId)
not yet introduced not yet introduced added same same same same same same
M IsSpec(ForgeTypeId)
not yet introduced added changed missing missing missing missing missing missing
M IsSymbol(ForgeTypeId)
not yet introduced added same same same same same same same
M IsUnit(ForgeTypeId)
not yet introduced added same same same same same same same
M IsValidDisplayUnit(UnitType, DisplayUnitType)
same changed missing missing missing missing missing missing missing
M IsValidDisplayUnit(DisplayUnitType)
same changed missing missing missing missing missing missing missing
M IsValidUnit(ForgeTypeId, ForgeTypeId)
not yet introduced added same same same same same same same
M IsValidUnitType(UnitType)
same changed missing missing missing missing missing missing missing

Per-version detail

Click a version below to see what changed in that release vs your current frame (2022).
2022 current

Changes in 2021 vs 2022 18 added 4 missing 3 changed

Flip API Versions →

Added in 2021 (new since 2022)

Missing in 2021 (only available in 2022)

Changed members

UnitUtils.GetAllSpecs()
Became obsolete in 2022: This method is deprecated in Revit 2022 and may be removed in a future version of Revit. Please use the `GetAllMeasurableSpecs()` method instead.
UnitUtils.GetUnitGroup(ForgeTypeId)
Became obsolete in 2022: This method is deprecated in Revit 2022 and may be removed in a future version of Revit. Please use the `GetDiscipline(ForgeTypeId)` method instead.
specTypeId ForgeTypeId Identifier of the spec.
UnitUtils.IsSpec(ForgeTypeId)
Became obsolete in 2022: This method is deprecated in Revit 2022 and may be removed in a future version of Revit. Please use the `IsMeasurableSpec(ForgeTypeId)` method instead.
specTypeId ForgeTypeId The identifier to check.
→ returns Boolean True if the ForgeTypeId identifies a measurable spec, false otherwise.

Changes in 2025 vs 2022 3 missing 6 changed

Flip API Versions →

Missing in 2025 (only available in 2022)

Changed members

UnitUtils.Convert(Double, ForgeTypeId, ForgeTypeId)
value Double The value to convert.
currentUnitTypeId ForgeTypeId Identifier of the current unit.
desiredUnitTypeId ForgeTypeId Identifier of the desired unit.
→ returns Double The converted value.
UnitUtils.ConvertFromInternalUnits(Double, ForgeTypeId)
value Double The value to convert.
unitTypeId ForgeTypeId Identifier of the desired unit.
→ returns Double The converted value.
UnitUtils.ConvertToInternalUnits(Double, ForgeTypeId)
value Double The value to convert.
unitTypeId ForgeTypeId Identifier of the unit quantifying the value.
→ returns Double The converted value.
UnitUtils.GetAllDisciplines()
→ returns IList The discipline identifiers.
UnitUtils.GetAllMeasurableSpecs()
→ returns IList The spec identifiers.
UnitUtils.GetAllUnits()
→ returns IList The unit identifiers.

Changes in 2025.3 vs 2022 3 missing 6 changed

Flip API Versions →

Missing in 2025.3 (only available in 2022)

Changed members

UnitUtils.Convert(Double, ForgeTypeId, ForgeTypeId)
value Double The value to convert.
currentUnitTypeId ForgeTypeId Identifier of the current unit.
desiredUnitTypeId ForgeTypeId Identifier of the desired unit.
→ returns Double The converted value.
UnitUtils.ConvertFromInternalUnits(Double, ForgeTypeId)
value Double The value to convert.
unitTypeId ForgeTypeId Identifier of the desired unit.
→ returns Double The converted value.
UnitUtils.ConvertToInternalUnits(Double, ForgeTypeId)
value Double The value to convert.
unitTypeId ForgeTypeId Identifier of the unit quantifying the value.
→ returns Double The converted value.
UnitUtils.GetAllDisciplines()
→ returns IList The discipline identifiers.
UnitUtils.GetAllMeasurableSpecs()
→ returns IList The spec identifiers.
UnitUtils.GetAllUnits()
→ returns IList The unit identifiers.

Changes in 2026 vs 2022 3 missing 6 changed

Flip API Versions →

Missing in 2026 (only available in 2022)

Changed members

UnitUtils.Convert(Double, ForgeTypeId, ForgeTypeId)
value Double The value to convert.
currentUnitTypeId ForgeTypeId Identifier of the current unit.
desiredUnitTypeId ForgeTypeId Identifier of the desired unit.
→ returns Double The converted value.
UnitUtils.ConvertFromInternalUnits(Double, ForgeTypeId)
value Double The value to convert.
unitTypeId ForgeTypeId Identifier of the desired unit.
→ returns Double The converted value.
UnitUtils.ConvertToInternalUnits(Double, ForgeTypeId)
value Double The value to convert.
unitTypeId ForgeTypeId Identifier of the unit quantifying the value.
→ returns Double The converted value.
UnitUtils.GetAllDisciplines()
→ returns IList The discipline identifiers.
UnitUtils.GetAllMeasurableSpecs()
→ returns IList The spec identifiers.
UnitUtils.GetAllUnits()
→ returns IList The unit identifiers.

Changes in 2027 vs 2022 3 missing 6 changed

Flip API Versions →

Missing in 2027 (only available in 2022)

Changed members

UnitUtils.Convert(Double, ForgeTypeId, ForgeTypeId)
value Double The value to convert.
currentUnitTypeId ForgeTypeId Identifier of the current unit.
desiredUnitTypeId ForgeTypeId Identifier of the desired unit.
→ returns Double The converted value.
UnitUtils.ConvertFromInternalUnits(Double, ForgeTypeId)
value Double The value to convert.
unitTypeId ForgeTypeId Identifier of the desired unit.
→ returns Double The converted value.
UnitUtils.ConvertToInternalUnits(Double, ForgeTypeId)
value Double The value to convert.
unitTypeId ForgeTypeId Identifier of the unit quantifying the value.
→ returns Double The converted value.
UnitUtils.GetAllDisciplines()
→ returns IList The discipline identifiers.
UnitUtils.GetAllMeasurableSpecs()
→ returns IList The spec identifiers.
UnitUtils.GetAllUnits()
→ returns IList The unit identifiers.