Changes in 2020 vs 2022 1 missing 2 changed
Flip API Versions →Missing in 2020 (only available in 2022)
Changed members
GlobalParameter.Create(Document, String, ParameterType)
Became obsolete in 2022: This method is deprecated in Revit 2022 and may be removed in a future version of Revit. Please use the Create(Document, string, ForgeTypeId) overload instead.
| document | Document | Document in which the new parameter is to be created |
| name | String | The name of the new parameter. It must be unique in the document |
| datatype | ParameterType | Type of the data the parameter is to store |
| → returns | GlobalParameter | An instance of the new global parameter |
GlobalParameter.IsValidDataType(ParameterType)
Became obsolete in 2022: This method is deprecated in Revit 2022 and may be removed in a future version of Revit. Please use the Parameter.IsSpec(ForgeTypeId) function instead.
| datatype | ParameterType | Type of the data the parameter is to store. |
| → returns | Boolean | True if the data type is suitable for a global parameter; False otherwise. |