Method AddLayout
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
namestringThe name of the tab.
paperstringThe sheet, as
ISO A3,ISO_A3orA3; null for ISO A3.landscapeboolTrue 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.