GetBarsNumber Method


Gets the number of bars specified in the layout options. This is used to calculate the sets driven by bar number.

Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 18.0.0.0 (18.2.0.0)
Since: 2018

Syntax

C#
public int GetBarsNumber()
Visual Basic
Public Function GetBarsNumber As Integer
Visual C++
public:
int GetBarsNumber()

Return Value

Returns the number of bars specified in the layout options.

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 →