Method Write
Write(string, CadDocument, CadSpace, CadPlotSettings, DisplayBox)
Writes a plot of a space to a PDF file of one page, replacing a file of the name.
public static CadPlotPage Write(string path, CadDocument document, CadSpace space, CadPlotSettings settings, DisplayBox display)
Parameters
pathstringThe file.
documentCadDocumentThe document.
spaceCadSpaceThe space plotted.
settingsCadPlotSettingsHow it is plotted.
displayDisplayBoxWhat the view shows, in drawing units, for a plot of the display; empty for the extents.
Returns
- CadPlotPage
The plot as it was laid on its sheet.
Exceptions
- ArgumentNullException
Thrown when an argument is null.
- InvalidOperationException
Thrown when there is nothing to plot.
Write(Stream, CadDocument, CadSpace, CadPlotSettings, DisplayBox)
Writes a plot of a space as a PDF of one page to a stream.
public static CadPlotPage Write(Stream stream, CadDocument document, CadSpace space, CadPlotSettings settings, DisplayBox display)
Parameters
streamStreamThe stream, written from where it stands.
documentCadDocumentThe document.
spaceCadSpaceThe space plotted.
settingsCadPlotSettingsHow it is plotted.
displayDisplayBoxWhat the view shows, in drawing units, for a plot of the display; empty for the extents.
Returns
- CadPlotPage
The plot as it was laid on its sheet.
Exceptions
- ArgumentNullException
Thrown when an argument is null.
- InvalidOperationException
Thrown when there is nothing to plot.