Table of Contents

Method SaveAsPageSetup

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

SaveAsPageSetup(CadDocument, string)

Writes the settings as a named page setup of the drawing, one undo step named PAGESETUP, as the Plot dialog's Add… and the Page Setup Manager's New… and Modify… do: the PLOTSETTINGS of the name added to ACAD_PLOTSETTINGS (the dictionary made where the drawing has none), or replaced where the name, letters of either case the same, is taken. What is written is as ApplyTo(CadDocument, CadSpace) writes it into a layout.

public CadEditResult SaveAsPageSetup(CadDocument document, string name)

Parameters

document CadDocument

The document.

name string

The page setup's name, trimmed.

Returns

CadEditResult

What came of the edit; refused where the name is not a good one (CheckPageSetupName(string)).

Exceptions

ArgumentNullException

Thrown when the document is null.