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
documentCadDocumentThe document.
viewportstringThe handle of the viewport.
layerstringThe name of the layer.
plotStylestringThe name of the plot style.
Returns
- CadEditResult
What came of it.
Exceptions
- ArgumentNullException
Thrown when the document is null.