Table of Contents

Method AddLayout

Namespace
OpenCAD2D.Remote
Assembly
OpenCAD2D.Remote.dll

AddLayout(string, string, bool)

Asks the app to add a layout on a sheet, as LAYOUT New and the page setup do, one undo step; it does not become the tab shown.

public string AddLayout(string name, string paper, bool landscape)

Parameters

name string

The name of the tab.

paper string

The sheet, as ISO A3, ISO_A3 or A3; null for ISO A3.

landscape bool

True for the long side across.

Returns

string

How the new layout is set up, as one object of GetLayoutSetups().

Exceptions

ArgumentNullException

Thrown when the name is null.

CadRemoteException

Thrown when the drawing is closed, a command is running in it, the name does not fit, or the sheet is not one the plotter lists.