ExternalDefinitionCreationOptions(String, ParameterType)
Description:
Constructs the options using a specified name and type.
Constructs the options using a specified name and type.
Overloads (2):
ExternalDefinitionCreationOptions(String,ParameterType)
[ObsoleteAttribute("This constructor is deprecated in Revit 2022 and may be removed in a future version of Revit. Please use the ExternalDefinitionCreationOptions(string, ForgeTypeId) overload instead.")]
public ExternalDefinitionCreationOptions(
string name,
ParameterType type
)
-
StringnameThe name of the parameter definition to be created.
-
typeThe name of the parameter type for the new definition.
-
type cannot be Invalid or FamilyType.
-
A non-optional argument was null
-
A value passed for an enumeration argument is not a member of that enumeration