SetPresentationMode Method


Sets the presentation mode for this rebar set when displayed in the given 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 void SetPresentationMode(
	View dBView,
	RebarPresentationMode presentationMode
)
Visual Basic
Public Sub SetPresentationMode ( _
	dBView As View, _
	presentationMode As RebarPresentationMode _
)
Visual C++
public:
void SetPresentationMode(
	View^ dBView, 
	RebarPresentationMode presentationMode
)

Parameters

dBView
Type: Autodesk.Revit.DBView
The view.
presentationMode
Type: Autodesk.Revit.DB.StructureRebarPresentationMode
The presentation mode.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentException This rebar cannot have a presentation mode applied for dBView, as the view is not valid for rebar presentation, or the orientation of the view matches the normal direction of the rebar element.
Autodesk.Revit.ExceptionsArgumentNullException A non-optional argument was null
Autodesk.Revit.ExceptionsArgumentOutOfRangeException A value passed for an enumeration argument is not a member of that enumeration
Autodesk.Revit.ExceptionsInapplicableDataException This rebar element represents a single bar (the layout rule is Single).

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 →