SetLayoutFormula Method


Rebar Set Layout Formula Method

Sets the specified formula for custom spacing.

Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 27.0.4.0 (27.0.4.0)
Syntax
public void SetLayoutFormula(
	string customSpacingFormula
)

Parameters

customSpacingFormula String
The formula that will be set.
Exceptions
Exception Condition
ArgumentException The specified formula is not valid (doesn't have a valid syntax). -or- The formula determines an array length of the Rebar set that is not between (0, 10000] feet.
ArgumentNullException A non-optional argument was null
InvalidOperationException Rebar should have CustomSpacing layout.
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 →