Table of Contents

Method SetPageSetup

Namespace
OpenCAD2D.Remote
Assembly
OpenCAD2D.Remote.dll

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

Asks the app to change the page setup of a layout, one undo step; only what is given is changed.

public string SetPageSetup(string layout, string paper, string orientation, string area, string scale, string plotStyle)

Parameters

layout string

The layout, or Model.

paper string

The sheet; null to keep it.

orientation string

landscape or portrait; null to keep it.

area string

layout, extents, display or limits; null to keep it.

scale string

As 1:50 or 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

string

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

Exceptions

ArgumentNullException

Thrown when the layout is null.

CadRemoteException

Thrown when the drawing is closed, a command is running in it, or a value is not one of those listed.