Table of Contents

Method ImportPageSetups

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

ImportPageSetups(CadDocument, DxfDatabase, IEnumerable<string>)

Copies page setups of another drawing into this one, as Import of the Page Setup Manager does, one undo step named PAGESETUP. A page setup whose name the drawing has already is added as Name (2), Name (3) and on, so that none is lost.

public static CadEditResult ImportPageSetups(CadDocument document, DxfDatabase source, IEnumerable<string> names)

Parameters

document CadDocument

The document the page setups go into.

source DxfDatabase

The drawing they come from, as Open(string) opens it.

names IEnumerable<string>

The names to copy, letters of either case the same; those the source has not are passed over.

Returns

CadEditResult

What came of the edit; refused where none of the names is a page setup of the source.

Exceptions

ArgumentNullException

Thrown when an argument is null.