Add a new family parameter with a given name.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 22.0.0.0 (22.1.0.0)
Syntax
| C# |
|---|
[ObsoleteAttribute("This property is deprecated in Revit 2022 and may be removed in a future version of Revit. Please use the AddParameter(string, ForgeTypeId, ForgeTypeId, bool) overload instead.")]
public FamilyParameter AddParameter(
string parameterName,
BuiltInParameterGroup parameterGroup,
ParameterType parameterType,
bool isInstance
) |
| Visual Basic |
|---|
<ObsoleteAttribute("This property is deprecated in Revit 2022 and may be removed in a future version of Revit. Please use the AddParameter(string, ForgeTypeId, ForgeTypeId, bool) overload instead.")> _
Public Function AddParameter ( _
parameterName As String, _
parameterGroup As BuiltInParameterGroup, _
parameterType As ParameterType, _
isInstance As Boolean _
) As FamilyParameter |
| Visual C++ |
|---|
[ObsoleteAttribute(L"This property is deprecated in Revit 2022 and may be removed in a future version of Revit. Please use the AddParameter(string, ForgeTypeId, ForgeTypeId, bool) overload instead.")]
public:
FamilyParameter^ AddParameter(
String^ parameterName,
BuiltInParameterGroup parameterGroup,
ParameterType parameterType,
bool isInstance
) |
Return Value
If creation was successful the new parameter is returned,
otherwise an exception with failure information will be thrown.
Remarks
Exceptions
See Also