GetSpacingsBetweenBars Method


Rebar Get Spacings Between Bars Method

Gets the spacings between all bars in set that have CustomSpacing layout. It will consider that there are no moved or removed bars from the set.

Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 27.0.4.0 (27.0.4.0)
Syntax
public IList<double> GetSpacingsBetweenBars()

Return Value

IList Double
Returns the spacings between all bars in set.
Exceptions
Exception Condition
InvalidOperationException Rebar should have CustomSpacing layout. -or- The Free Form Rebar doesn't have set a distribution path.
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 →