IsBarHidden Method


Identifies if a given bar in this rebar set is hidden in this view.

Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 22.0.0.0 (22.1.0.0)
Since: 2016

Syntax

C#
public bool IsBarHidden(
	View view,
	int barIndex
)
Visual Basic
Public Function IsBarHidden ( _
	view As View, _
	barIndex As Integer _
) As Boolean
Visual C++
public:
bool IsBarHidden(
	View^ view, 
	int barIndex
)

Parameters

view
Type: Autodesk.Revit.DB View
The view.
barIndex
Type: System Int32
The index of the bar from this rebar set.

Return Value

True if the bar is hidden in this view, false otherwise.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentNullException A non-optional argument was null
Autodesk.Revit.Exceptions ArgumentOutOfRangeException barIndex is not in the range [ 0, NumberOfBarPositions-1 ].

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →