Skip to content

CustomExporter.Export2DForceDisplayStyle

Public Property

This value tells the exporter of 2D views to force the given display mode for the view.

Namespace: Autodesk.Revit.DB

Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)

Syntax

public DisplayStyle Export2DForceDisplayStyle { get; set; }

Property Value

DisplayStyle

Exceptions

Exception

Condition


ArgumentOutOfRangeException

When setting this property: A value passed for an enumeration argument is not a member of that enumeration


Remarks

Only DisplayStyle::Wireframe and DisplayStyle::HLR values are supported. Default forced value is DisplayStyle::HLR unless the view has DisplayStyle:Wireframe.

See notes for 2D export for views in non-Wireframe display style in [!:Autodesk::Revit::DB::IExportContextBase] and IExportContext2D.