Class CadSheetSetSheet
A sheet of a sheet set: a number and a title, and the layout of a drawing it is (Layout), with the
revision fields, whether it is published, its custom property values and its sheet views. It is named
CadSheetSetSheet, not CadSheet, because CadSheet is a sheet of a spreadsheet.
public sealed class CadSheetSetSheet : CadSheetComponent
- Inheritance
-
CadSheetSetSheet
- Inherited Members
Properties
- Category
Gets or sets the sheet's category, free text.
- IncludeForPublish
Gets or sets whether the sheet is published with its set; the file keeps the opposite,
DoNotPlot, and leaves it out for a sheet that is.
- IssuePurpose
Gets or sets the issue purpose.
- Layout
Gets or sets the drawing and layout the sheet is: the drawing's file, the layout's name, its handle and the handle of its owner. Null for a sheet with no layout yet. Finding the layout in the drawing is not done here.
- Number
Gets or sets the sheet number, free text ("A-101"); empty for none.
- RevisionDate
Gets or sets the revision date, free text.
- RevisionNumber
Gets or sets the revision number.
- Title
Gets or sets the sheet title.
- Views
Gets the sheet views (the named model space views placed on the sheet), in the order of the file.
Methods
- AddView(string, string, CadDrawingReference, CadViewCategory)
Adds a sheet view, at the end.
- Associate(string, string)
Makes the sheet another layout, as the Expected Layout row of the Sheet Properties does for a sheet that is missing: the sheet takes the layout's file, name, handle and owner, and the drawing gets the sheet set mark and is saved as a DWG of AutoCAD 2018.
- DefaultFileName(string, string)
The name a new sheet's drawing is saved under unless another is typed: its number, a space and its title ("A-101 Ground floor plan"), the title alone for a sheet with no number, each character a file cannot hold made an underscore. It has no extension.
- DefaultLayoutName(string, string)
The name a new sheet's layout is given, and the name Rename & Renumber offers: the number, a space and the title, the title alone for a sheet with no number, each character a layout cannot hold (and the #) made an underscore.
- FindLayout()
Finds the sheet's layout in its drawing (D7): the drawing is the one the sheet's file names (the relative form first), and the layout is the one that has the sheet's handle, else the one that has its name. A sheet whose drawing is gone, or whose drawing has neither, is missing. The drawing is read, not changed.
- RemoveView(CadSheetView)
Takes a sheet view out of the sheet.
- RenameAndRenumber(string, string, string, string)
Renames and renumbers the sheet as Rename & Renumber Sheet does (B18). A new number and title are only written into the set. A new layout name renames the layout in the drawing, and a new file name renames the drawing in its folder, so that the drawing is read, given the sheet set mark, saved as a DWG of AutoCAD 2018 under the new name and the old file deleted; every sheet of the set that is a layout of that drawing follows the file. The drawing is only touched when its layout name or its file name changes. A drawing that is open in the app must be saved and closed by the caller first, and opened again after.