Class CadSheetSubset
A subset of a sheet set, a named group of sheets and of subsets inside it, as the Sheet List tab of the palette shows it, and the base of CadSheetSet, which is the group at the top. The Children are in set order, which is the order of the XML and nothing else.
public class CadSheetSubset : CadSheetComponent
- Inheritance
-
CadSheetSubset
- Derived
- Inherited Members
Properties
- Children
Gets the subsets and sheets directly in this group, in set order.
- Name
Gets or sets the name.
- NewSheetLocation
Gets or sets the folder a new sheet in this group is saved in (
NewSheetLocation); null for none.
- PromptForTemplate
Gets or sets whether a new sheet asks which template to use (
PromptForDwt).
- PublishSheets
Gets or sets whether the sheets in this group, and in the groups inside it, are published with the set: AutoCAD's Publish Sheets in Subset, true until it is cleared. The file keeps the opposite,
OverrideSheetPublish, and leaves it out for a group that publishes. The palette does not offer it for the sheet set itself.
- Sheets
Gets the sheets directly in this group, in set order.
- Subsets
Gets the subsets directly in this group, in set order.
- Template
Gets or sets the sheet creation template: the layout of a drawing template (a .dwt) that a new sheet in this group is made from (
DefDwtLayout). Null for none; the sheet set's own then applies to a subset that has none.
Methods
- AddSheet(string, string, CadDrawingReference, int)
Adds a sheet to this group; it is given an empty list of sheet views, as AutoCAD gives one.
- AddSubset(string, string, int)
Adds a subset to this group.
- AllSheets()
Walks every sheet in this group and the groups inside it, depth first in set order.
- ImportLayouts(string, IReadOnlyList<string>, bool)
Makes layouts of a drawing sheets of the set, as Import Layouts as Sheets does: a sheet for each, at the end of this group, with no number and the layout's name as its title (the drawing's file name, a hyphen and the layout's name with
prefixTitleWithFileName), every sheet custom property at its default. The drawing is rewritten as a DWG of AutoCAD 2018 with the sheet set mark; the\AcSmfields of each layout are bound to its sheet once the set is saved (Bind(CadDocument, string, CadSheetSetFile, CadSheetSetSheet)) and the rest of the layout is not touched. A layout that CheckLayouts(string) refuses is refused here, and then nothing is changed.
- Move(CadSheetComponent, CadSheetSubset, int)
Moves a sheet or a subset to another place in the set: another place in its own group, or another group.
- NewSheet(string, string, CadDrawingReference, string, int)
Makes a new sheet as New Sheet does (D11): a drawing is made from the layout of the sheet creation template with every other layout taken out and nothing left in model space, the layout is named "Number Title" and the drawing is saved as a DWG of AutoCAD 2018 in the folder new sheets of this group go to; the sheet is added to this group and takes every sheet custom property at its default; the drawing gets the sheet set mark (CadSheetSetHint).
- NewSubset(string, string, bool, int)
Adds a subset as New Subset does: the name must not be empty and must not be the name of a subset already in this group (letter case ignored); with
createFolderthe subset gets a folder of its own, its name inside the folder new sheets of this group go to, made on disk now and set as the subset's NewSheetLocation, so that its sheets are saved there (Create Folder Hierarchy).
- Remove(CadSheetComponent)
Takes a sheet or a subset, with what is in it, out of this group or one inside it.