Method SetPageSetup
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
layoutstringThe layout, or
Model.paperstringThe sheet; null to keep it.
orientationstringlandscapeorportrait; null to keep it.areastringlayout,extents,displayorlimits; null to keep it.scalestringAs
1:50or0.02, orfit; null to keep it.plotStylestringThe 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.