Table of Contents

Method PageSetupNames

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

PageSetupNames(CadDocument)

Gets the page setups of a drawing by name, as the Name list of the Plot dialog's Page setup offers them: the PLOTSETTINGS of its dictionary ACAD_PLOTSETTINGS, in ordinal order of their names, letters of either case the same.

public static IReadOnlyList<string> PageSetupNames(CadDocument document)

Parameters

document CadDocument

The document.

Returns

IReadOnlyList<string>

The names, a new list; empty where the drawing has none.

Exceptions

ArgumentNullException

Thrown when the document is null.

PageSetupNames(DxfDatabase)

Gets the page setups of another drawing by name, as Import in the Page Setup Manager lists them: the PLOTSETTINGS of its dictionary ACAD_PLOTSETTINGS, in ordinal order of their names, letters of either case the same.

public static IReadOnlyList<string> PageSetupNames(DxfDatabase database)

Parameters

database DxfDatabase

The drawing, as Open(string) opens it.

Returns

IReadOnlyList<string>

The names, a new list; empty where the drawing has none.

Exceptions

ArgumentNullException

Thrown when the drawing is null.