2022 Method
Changes 8
M

GlobalParameter.IsValidDataType

Description:
Tests whether the input Data Type is valid as a type of a global parameter.
Remarks:
Since most data types but not all are supported by global parameters, it is reasonable to test a data type before attempting to create a global parameter of it.
[ObsoleteAttribute("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.")]
public static bool IsValidDataType(
	ParameterType datatype
)
Return Value bool True if the data type is suitable for a global parameter; False otherwise.