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
documentCadDocumentThe document.
settingsCadPlotSettingsHow 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
documentCadDocumentThe document.
styleSheetstringThe 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.