Sets the bar in this rebar set to be hidden or unhidden in the given view.
Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.2.0.0 (26.2.0.0)
Syntax
C#
public void SetBarHiddenStatus( View view, int barIndex, bool hide )
Parameters
- view View
- The view.
- barIndex Int32
- The index of the bar from this set.
- hide Boolean
- True to hide this bar in the view, false to unhide the bar.
Exceptions
Exception | Condition |
---|---|
ArgumentException | This rebar cannot have a presentation mode applied for view, as the view is not valid for rebar presentation, or the orientation of the view matches the normal direction of the rebar element. |
ArgumentNullException | A non-optional argument was null |
ArgumentOutOfRangeException | barIndex should be in range [ 0, NumberOfBarPositions-1 ] and the bar at barIndex should be included. |
InapplicableDataException | This rebar element represents a single bar (the layout rule is Single). |