GetLayoutFormula Method


Rebar Get Layout Formula Method

Gets the formula that is used to compute the spacings between bars.

Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 27.0.4.0 (27.0.4.0)
Syntax
public string GetLayoutFormula(
	bool formatFormula
)

Parameters

formatFormula Boolean
If it's false the returned string will contain values that are not rounded and they are in internal Revit units (decimal feet), otherwise it will be formatted according to project units.

Return Value

String
Returns the formula that is used to compute the spacings between bars.
Exceptions
Exception Condition
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 →