DoesBarExistAtPosition Method


Rebar Container Item Does Bar Exist At Position Method

Checks whether a bar exists at the specified position.

Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public bool DoesBarExistAtPosition(
	int barPosition
)

Parameters

barPosition Int32
A bar position index between 0 and NumberOfBarPositions-1.

Return Value

Boolean
Exceptions
Exception Condition
ArgumentOutOfRangeException barPosition is not in the range [ 0, NumberOfBarPositions-1 ].
Remarks
Returns true, unless the bar position is the first or last in the set and it is suppressed by IncludeFirstBar or IncludeLastBar.
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 →