Share

FamilyManager.SetFormula Method

Set the formula of a family parameter.


Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)

Syntax

C#

public void SetFormula(
	FamilyParameter familyParameter,
	string formula
)

Parameters

familyParameter  FamilyParameter
The family parameter.
formula  String
The formula string, input nullptr to clean the formula of the parameter.

Exceptions

ExceptionCondition
ArgumentNullException Thrown when the input argument-"familyParameter"-is nullptr.
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.

See Also

Reference

Was this information helpful?