Changes in 2020 vs 2021 4 missing 4 changed
Flip API Versions →Missing in 2020 (only available in 2021)
Changed members
Units.GetFormatOptions(UnitType)
Became obsolete in 2021: This method is deprecated in Revit 2021 and may be removed in a future version of Revit. Please use the `GetFormatOptions(ForgeTypeId)` overload instead.
| unitType | UnitType | The unit type. |
| → returns | FormatOptions | A copy of the FormatOptions. |
Units.GetModifiableUnitTypes()
Became obsolete in 2021: This method is deprecated in Revit 2021 and may be removed in a future version of Revit. Please use the `GetModifiableSpecs()` method instead.
| → returns | IList | The unit types for which the FormatOptions can be modified. |
Units.IsModifiableUnitType(UnitType)
Became obsolete in 2021: This method is deprecated in Revit 2021 and may be removed in a future version of Revit. Please use the `IsModifiableSpec(ForgeTypeId)` method instead.
| unitType | UnitType | The unit type to check. |
| → returns | Boolean | True if the FormatOptions can be modified, false otherwise. |
Units.SetFormatOptions(UnitType, FormatOptions)
Became obsolete in 2021: This method is deprecated in Revit 2021 and may be removed in a future version of Revit. Please use the `SetFormatOptions(ForgeTypeId, FormatOptions)` overload instead.
| unitType | UnitType | The unit type. |
| options | FormatOptions | The FormatOptions. |