FamilyManager.SetFormula
Method
Description:
Set the formula of a family parameter.
Set the formula of a family parameter.
Parameters
| Parameter | Type | Description |
|---|---|---|
| familyParameter | FamilyParameter | The family parameter. |
| formula | String | The formula string, input <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LSTF9248395_1"></span></span> to clean the formula of the parameter. |
Return Value
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | Thrown when the input argument-"familyParameter"-is. |
| InvalidOperationException | Thrown when there is no valid family type, or the parameter cannot be assigned a formula, or the operation make a circular chain of references among the formulas. |