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

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →