Revit 2026 API
Custom |
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: 26.0.4.0 (26.0.4.0)
Syntax
public DisplayStyle Export2DForceDisplayStyle { get; set; }
Public Property Export2DForceDisplayStyle As DisplayStyle Get Set
public: property DisplayStyle Export2DForceDisplayStyle { DisplayStyle get (); void set (DisplayStyle value); }
member Export2DForceDisplayStyle : DisplayStyle with get, set
Property Value
DisplayStyle| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | When setting this property: A value passed for an enumeration argument is not a member of that enumeration |
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.
See Also