Table of Contents

Method Write

Namespace
OpenCAD2D.Wpf
Assembly
OpenCAD2D.Rendering.dll

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

path string

The file.

document CadDocument

The document.

space CadSpace

The space plotted.

settings CadPlotSettings

How it is plotted.

display DisplayBox

What 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

stream Stream

The stream, written from where it stands.

document CadDocument

The document.

space CadSpace

The space plotted.

settings CadPlotSettings

How it is plotted.

display DisplayBox

What 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.