Table of Contents

Method Compute

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

Compute(CadDocument, CadSpace, CadPlotSettings, DisplayBox)

Lays a plot of a space on its sheet, as AutoCAD's plot places it. The sheet lies on its side where the settings are landscape, its margins turning with it; the area is what the view shows (display), the extents of the space's display list, the limits (LIMMIN and LIMMAX of model space, a layout's own), the window, the window of a named view, or a layout's sheet; a viewport VPMAX has maximized is laid as it was before. Fitted, the scale is the larger that keeps the area in the printable area; else the settings' own. The plot is centred in the printable area where asked, else moved by the offset from its corner; a layout's sheet plotted as the layout is placed by its origin, the paper's (0, 0) at the printable corner plus the offset. Upside down turns the sheet half round about its middle last.

public static CadPlotPage Compute(CadDocument document, CadSpace space, CadPlotSettings settings, DisplayBox display)

Parameters

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 Display; the extents are taken where it is empty.

Returns

CadPlotPage

The plot laid on its sheet.

Exceptions

ArgumentNullException

Thrown when the document, the space or the settings are null.