Table of Contents

Class CadPlotPage

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

A plot laid on its sheet: the sheet as it lies, the printable area inside its margins, the part of the space plotted, the scale and where the plot sits, and the transform from the drawing to the sheet in millimetres, the sheet's lower left corner at (0, 0) and its Y upward. A PDF page, the preview and a printer draw through it alike.

public sealed class CadPlotPage
Inheritance
CadPlotPage
Inherited Members

Remarks

The window from (120, 60) to (7 620, 5 360) of model space on ISO A3 on its side, margins 5, at 1:20 and centred: the sheet 420 by 297, the printable area (5, 5) to (415, 292), the plot 375 by 265 moved (17.5, 11) from the printable area's corner, so (120, 60) lands at (22.5, 16) and (7 620, 5 360) at (397.5, 281). Fitted, the same window is 1 mm to 18.4669 units (410 / 7 500 against 287 / 5 300, the smaller), 406.13 by 287 moved (1.93, 0). Turned upside down, the sheet is turned half round about its middle after the plot is laid: (120, 60) at (397.5, 281).

Fields

PointsPerMillimetre

The points of a PDF in a millimetre: 72 to the inch of 25.4 mm.

Properties

Area

Gets the part of the space plotted, in drawing units; empty where there is nothing to plot.

DrawingToPoints

Gets the transform from the drawing to the points of a PDF page, its Y downward from the top as a canvas draws: the sheet's transform then millimetres to points, turned over.

DrawingToSheet

Gets the transform from the drawing to the sheet, in millimetres from its lower left corner, Y upward.

IsEmpty

Gets whether there is nothing to plot: an area of no width and no height, or none.

OffsetX

Gets how far right of the printable area's corner the plot lies, in millimetres, before it is turned upside down.

OffsetY

Gets how far up of the printable area's corner the plot lies, in millimetres.

Printable

Gets the printable area on the sheet, in millimetres from its lower left corner: (5, 5) to (415, 292) for ISO A3 on its side.

Scale

Gets the scale, millimetres of the sheet per drawing unit: 0.05 at 1:20.

SheetHeight

Gets the height of the sheet as it lies, in millimetres.

SheetHeightPoints

Gets the height of the sheet in the points of a PDF: 841.89 for ISO A3 on its side.

SheetWidth

Gets the width of the sheet as it lies, in millimetres: 420 for ISO A3 on its side, 297 upright.

SheetWidthPoints

Gets the width of the sheet in the points of a PDF: 1 190.55 for ISO A3 on its side.

Methods

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.