Table of Contents

Method CreateFromDrawings

Namespace
OpenCAD2D.SheetSets
Assembly
OpenCAD2D.Core.dll

CreateFromDrawings(string, string, string, IEnumerable<CadSheetImportSource>, CadSheetImportOptions)

Makes a sheet set of layouts of drawings that exist, as the wizard's second route does: an empty set, then the layouts of each source imported as sheets in the order given (with the set marks written into the drawings), into subsets made from the folders where the options say so. Nothing is left behind where an import is refused: the .dst is deleted again (drawings already marked keep a mark that names a set that is not there).

public static CadSheetSetFile CreateFromDrawings(string path, string name, string description, IEnumerable<CadSheetImportSource> sources, CadSheetImportOptions options)

Parameters

path string

The path of the .dst to make; the file must not be there, and its folder must.

name string

The name of the new sheet set.

description string

The description, or null for none.

sources IEnumerable<CadSheetImportSource>

The drawings and their layouts, in the order of the sheets.

options CadSheetImportOptions

The import options; null for all off.

Returns

CadSheetSetFile

The file, as saved.

Exceptions

ArgumentNullException

Thrown when the path, the name or the sources are null.

IOException

Thrown when a file is already at the path.

InvalidOperationException

Thrown when a layout is refused (the message says why).