Method Create
Create(CadSheetSet, IEnumerable<CadSheetComponent>, string, CadPublishOptions, CadDocument)
Builds the list for a selection of the Sheet List: the sheets under the selected nodes, in set order, or all of the set where nothing is selected or the set itself is.
public static CadSheetSetPublish Create(CadSheetSet set, IEnumerable<CadSheetComponent> selection, string pageSetupOverride, CadPublishOptions pdfOptions, CadDocument current)
Parameters
setCadSheetSetThe sheet set; its output folder, one file or a file each and publishing order are used. The set belongs to a file as loaded: take it from SheetSet just before.
selectionIEnumerable<CadSheetComponent>The selected sheets, subsets and the set; null or empty for the whole set.
pageSetupOverridestringThe name of a page setup of the set's page setup overrides file to publish every sheet with, in place of its own; null or empty for each sheet's own.
pdfOptionsCadPublishOptionsThe PDF options the sheet set PDF dialog set (CreateBookmarks, IncludeHyperlinks and the file name); a copy is used. Null for the dialog's start: bookmarks and hyperlinks on, the file named by the set.
currentCadDocumentThe drawing open, used as it stands for a sheet that is a layout of it; null for none.
Returns
- CadSheetSetPublish
The publish.
Exceptions
- ArgumentNullException
Thrown when the set is null.
- InvalidOperationException
Thrown when a page setup override is asked for and the set names no overrides file.