Add a new family type parameter to control the type of a nested family within another family.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Syntax
C# |
---|
[ObsoleteAttribute("This method is deprecated in Revit 2024 and may be removed in a future version of Revit. Please use the `AddParameter(String, ForgeTypeId, Category, bool)` method instead.")]
public FamilyParameter AddParameter(
string parameterName,
BuiltInParameterGroup parameterGroup,
Category familyCategory,
bool isInstance
) |
Visual Basic |
---|
<ObsoleteAttribute("This method is deprecated in Revit 2024 and may be removed in a future version of Revit. Please use the `AddParameter(String, ForgeTypeId, Category, bool)` method instead.")> _
Public Function AddParameter ( _
parameterName As String, _
parameterGroup As BuiltInParameterGroup, _
familyCategory As Category, _
isInstance As Boolean _
) As FamilyParameter |
Visual C++ |
---|
[ObsoleteAttribute(L"This method is deprecated in Revit 2024 and may be removed in a future version of Revit. Please use the `AddParameter(String, ForgeTypeId, Category, bool)` method instead.")]
public:
FamilyParameter^ AddParameter(
String^ parameterName,
BuiltInParameterGroup parameterGroup,
Category^ familyCategory,
bool isInstance
) |
Parameters
- parameterName
- Type: System..::..String
The name of the new family parameter.
- parameterGroup
- Type: Autodesk.Revit.DB..::..BuiltInParameterGroup
The group to which the family parameter belongs.
- familyCategory
- Type: Autodesk.Revit.DB..::..Category
The category to which the new family parameter binds.
- isInstance
- Type: System..::..Boolean
Indicates if the new family parameter is instance or type.
Return Value
If creation was successful the new parameter is returned,
otherwise an exception with failure information will be thrown.
Remarks
Exceptions
See Also