Table of Contents

Property PlotPaperMargins

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

PlotPaperMargins

Gets or sets the margins of the sheet, as AutoCAD's PlotPaperMargins: its MinPoint the left (group 40) and bottom (41) margins, its MaxPoint the right (42) and top (43), in millimetres.

public DxfExtents2d PlotPaperMargins { get; set; }

Property Value

DxfExtents2d

Set, the four written in millimetres whatever PlotPaperUnits says, and a layout's Limits made the sheet about its plotted area again: a layout of A2 on its side given margins of 10 all round has limits (-10, -10) to (584, 410). AutoCAD takes its margins from the plotter's sheet, which a DXF does not hold; a reader that has no plotter, as ezdxf and the library, takes these. The margins it has change nothing.

Exceptions

ArgumentOutOfRangeException

Thrown when a margin set is not a finite number of nought or more.

ArgumentException

Thrown when the margins set leave no room on the sheet: the left and right as wide as it or wider, or the bottom and top as high.

InvalidOperationException

Thrown when the settings are in no drawing, as a layout made in code before it is added, or are erased.