Method Add
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
Add(CadDocument, string, string, bool)
Adds a layout and sets its sheet, as LAYOUT New and the page setup do: the sheet of the paper given on its side or turned, what is plotted the layout itself at 1:1. It is not made the layout shown. One undo step.
public static CadLayoutInfo Add(CadDocument document, string name, string paper, bool landscape)
Parameters
documentCadDocumentThe drawing.
namestringThe name of the tab: not
Model, not one the drawing has (letters of either case the same), without any of< > / \ " : ; ? * | , = `.paperstringThe sheet, as
ISO A3,ISO_A3orA3(see Standard); ISO A3 where null.landscapeboolTrue for the long side across, false for the sheet turned.
Returns
- CadLayoutInfo
How the new layout is set up.
Exceptions
- ArgumentNullException
Thrown when the drawing or the name is null.
- ArgumentException
Thrown when the name does not fit or the sheet is not one the plotter lists.