Table of Contents

Method SetPlotStyle

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

SetPlotStyle(CadDocument, string, string, string)

Overrides a layer's plot style in a viewport, as the VP Plot Style column: a name of the drawing's plot styles, in a drawing of named plot styles; refused in one plotted by colour, where the column is grey, as AutoCAD refuses it.

public static CadEditResult SetPlotStyle(CadDocument document, string viewport, string layer, string plotStyle)

Parameters

document CadDocument

The document.

viewport string

The handle of the viewport.

layer string

The name of the layer.

plotStyle string

The name of the plot style.

Returns

CadEditResult

What came of it.

Exceptions

ArgumentNullException

Thrown when the document is null.