Method Read
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
Read(CadDocument, CadSpace)
Reads how a space is plotted from the drawing, as AutoCAD's Plot dialog opens on a layout's page setup: the plot
settings of the space's LAYOUT, model space's from the layout Model. The sheet is the standard one of the name the
layout gives and its margins, else one made of the layout's size and margins, ISO A3 where it gives none; a named
view is kept by its name (ViewName), a layout's sheet of model space as its extents; the plot style table is kept by the name
of its file (StyleSheet), monochrome.ctb reading as Monochrome
and grayscale.ctb as Grayscale through StyleTable. A space
whose settings cannot be read is given the defaults, a layout plotting its sheet at 1:1.
public static CadPlotSettings Read(CadDocument document, CadSpace space)
Parameters
documentCadDocumentThe document.
spaceCadSpaceThe space.
Returns
- CadPlotSettings
The settings, a new object.
Exceptions
- ArgumentNullException
Thrown when the document or the space is null.