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: 24.0.0.0 (24.0.0.0)
Since:  2015

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.DBView
The view.
barIndex
Type: SystemInt32
The index of the bar from this rebar set.

Return Value

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

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentNullException A non-optional argument was null
Autodesk.Revit.ExceptionsArgumentOutOfRangeException 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 →