Method CreateFromDrawings
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
pathstringThe path of the .dst to make; the file must not be there, and its folder must.
namestringThe name of the new sheet set.
descriptionstringThe description, or null for none.
sourcesIEnumerable<CadSheetImportSource>The drawings and their layouts, in the order of the sheets.
optionsCadSheetImportOptionsThe 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).