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
documentCadDocumentThe drawing.
layoutstringThe layout, or
Model.paperstringThe sheet, as Add(CadDocument, string, string, bool) takes it; null to keep it.
orientationstringlandscapeorportrait; null to keep it.areastringWhat is plotted:
layout,extents,displayorlimits; null to keep it.scalestringThe scale as
1:50,2:1or a number of paper millimetres to the drawing unit (0.02), orfit; null to keep it.plotStylestringThe 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.