FamilyManager.AssociateElementParameterToFamilyParameter
Method
Description:
Associates or disassociates the element parameter to an existing family parameter.
Associates or disassociates the element parameter to an existing family parameter.
Remarks:
The parameter types of these two input parameter should be same, if not an exception with failure information will be thrown.
The parameter types of these two input parameter should be same, if not an exception with failure information will be thrown.
Syntax
public void AssociateElementParameterToFamilyParameter(
Parameter elementParameter,
FamilyParameter familyParameter
)
Parameters
Parameter | Type | Description |
---|---|---|
elementParameter | Parameter | The parameter of an element in family. |
familyParameter | FamilyParameter | The existing family parameter. If the input to this argument is <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LSTC87672D_1"></span></span>, it will disassociate the element parameter from any family parameters. |
Return Value
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown when the input argument-"elementParameter"-is. |
ArgumentException | Thrown when the input argument-"elementParameter" or "familyParameter"-is an invalid parameter, or the input argument-"elementParameter"-cannot be associated. |
InvalidOperationException | Thrown when the family parameter binding failed. |