Table of Contents

Method Create

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

Create(CadDocument, CadPlotSettings)

Makes the resolver of a plot: the table the settings name (EffectiveStyleSheet), read from the document's PlotStyleFolder.

public static CadPlotStyleResolver Create(CadDocument document, CadPlotSettings settings)

Parameters

document CadDocument

The document.

settings CadPlotSettings

How it is plotted.

Returns

CadPlotStyleResolver

The resolver.

Exceptions

ArgumentNullException

Thrown when the document or the settings are null.

Create(CadDocument, string)

Makes the resolver of a table of a document's folder, by its file name.

public static CadPlotStyleResolver Create(CadDocument document, string styleSheet)

Parameters

document CadDocument

The document.

styleSheet string

The table's file name, as monochrome.ctb; empty for none.

Returns

CadPlotStyleResolver

The resolver; with no table it gives the colours as displayed.

Exceptions

ArgumentNullException

Thrown when the document is null.