Table of Contents

Method SetPageSetup

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

SetPageSetup(CadDocument, string, string, string, string, string, string)

Changes the page setup of a layout, as the Page Setup dialog does: only what is given is changed. One undo step.

public static CadLayoutInfo SetPageSetup(CadDocument document, string layout, string paper, string orientation, string area, string scale, string plotStyle)

Parameters

document CadDocument

The drawing.

layout string

The layout, or Model.

paper string

The sheet, as Add(CadDocument, string, string, bool) takes it; null to keep it.

orientation string

landscape or portrait; null to keep it.

area string

What is plotted: layout, extents, display or limits; null to keep it.

scale string

The scale as 1:50, 2:1 or a number of paper millimetres to the drawing unit (0.02), or fit; null to keep it.

plotStyle string

The plot style table by the name of its file, empty for none; null to keep it.

Returns

CadLayoutInfo

How the layout is set up now.

Exceptions

ArgumentNullException

Thrown when the drawing or the layout is null.

ArgumentException

Thrown when the layout is not in the drawing, or a value is not one of those listed.