Table of Contents

CadPlotPage

from OpenCAD2D import CadPlotPage

class CadPlotPage(System.Object) ยท CadPlotPage in the .NET reference

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.

Properties and fields

PointsPerMillimetre

.NET

PointsPerMillimetre: ClassVar[float]

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

Area

.NET

@property
def Area(self) -> DisplayBox

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

DrawingToPoints

.NET

@property
def DrawingToPoints(self) -> Affine2

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

.NET

@property
def DrawingToSheet(self) -> Affine2

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

IsEmpty

.NET

@property
def IsEmpty(self) -> bool

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

OffsetX

.NET

@property
def OffsetX(self) -> float

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

OffsetY

.NET

@property
def OffsetY(self) -> float

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

Printable

.NET

@property
def Printable(self) -> DisplayBox

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

.NET

@property
def Scale(self) -> float

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

SheetHeight

.NET

@property
def SheetHeight(self) -> float

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

SheetHeightPoints

.NET

@property
def SheetHeightPoints(self) -> float

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

SheetWidth

.NET

@property
def SheetWidth(self) -> float

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

SheetWidthPoints

.NET

@property
def SheetWidthPoints(self) -> float

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

Methods

Compute

.NET

@staticmethod
def Compute(document: CadDocument, space: CadSpace, settings: CadPlotSettings, display: DisplayBox) -> CadPlotPage

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.