GetFormula Method


Global Parameter Get Formula Method

Returns the parameter's expression in form of a string.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public string GetFormula()

Return Value

String
The string representing the expression assigned to the parameter.
Remarks
Returns an empty string a case the parameter is not determined by a formula, or if the the expression cannot be converted to a string.
See Also
ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →