Namespace OpenCAD2D.SheetSets
Classes
- CadDrawingReference
What a sheet set data file keeps of an object inside a drawing: the drawing's file (in the four forms of CadFileReference), the object's name and its handle. A sheet names its layout this way, the sheet creation template names its layout, the label block names its block and a sheet view names its model space view.
- CadFileReference
A path as a sheet set data file keeps it, in the four forms AutoCAD writes so that a set still finds its files after the folder is moved or opened on another machine: the absolute path, the path relative to the .dst (
.\A-101.dwgfor a drawing beside the set,..\Shared\T.dwtfor one above it,.for the folder itself), the path with environment variables (%USERPROFILE%\Sheets) and the path with a special folder ($(CSIDL_PERSONAL)\Sheets). A form that is absent is null.
- CadFoundLayout
What FindLayout() found: the drawing's file as it resolves, and the layout in it, by its handle first and its name next.
- CadModelView
A named view of model space in a drawing of a resource location, as the Model Views tab lists it: its name, the centre of what it shows and how wide and how high that is, in the drawing's own units (a view 32 000 by 18 500 of a drawing in millimetres), and where its record is in the drawing's view table.
- CadPlaceOnSheetPlan
What Place on Sheet places: a named view of model space of a resource drawing, or the whole of the drawing's model space, with the box of it in the drawing's own units. Made by Plan(string, string).
- CadPlaceOnSheetResult
What Place(CadDocument, CadSpace, CadPlaceOnSheetPlan, GeoPoint2, string) made on the sheet, which the caller records in the sheet set.
- CadSheetComponent
A part of a sheet set that is a sheet or a subset (or the set itself, which is a subset of everything): it has an Id, a place in the set, a description and a list of custom properties. The objects are read from, and written to, the XML tree of their CadSheetSetFile; they can be changed only inside Change(Action<CadSheetSet>).
- CadSheetImportLayout
A layout of a drawing as the Import Layouts as Sheets dialog and the Choose Layouts page of the wizard list it: its name and handle, and the reason it cannot become a sheet where it cannot. Made by CheckLayouts(string) and CheckLayouts(string).
- CadSheetImportOptions
The options of the Import Options dialog of the wizard, for a sheet set made from existing drawings (CreateFromDrawings(string, string, string, IEnumerable<CadSheetImportSource>, CadSheetImportOptions)). Every one is off in a new object; the dialog turns them on.
- CadSheetImportSource
One drawing the wizard's Choose Layouts page ticked: the folder that was picked to find it, the drawing, and the names of its layouts that are ticked, in the order they become sheets.
- CadSheetListColumn
A column of a sheet list table: what it shows and the heading above it.
- CadSheetListTable
The sheet list table of a sheet set (Insert Sheet List Table): a table of the current style with a title row, a row of headings, then a row for each sheet in set order, a merged row with the subset's name ahead of its sheets where the subsets are headers. The number and title cells are fields of the set bound to the sheet (
\AcSm Database("…").SheetSet("g…").Component("g…").Number) carrying AutoCAD's hyperlink switch (\href ".\A-101.dwg#,Ground floor#A-101#1"), so that they follow a renumbering and open the sheet; the other cells are bound fields too, but the drawing file and layout names, which are text.
- CadSheetListTableSettings
The settings of a sheet list table, what the Insert Sheet List Table dialog sets: the title text, whether the subsets head their sheets, the columns, and which subsets and sheets are listed. A table keeps them (CadSheetListTable) so that Update Sheet List Table lists the set again as it was set up.
- CadSheetSet
The sheet set: the group at the top of the Sheet List, with its name and description, its project fields, the sheet creation template and the folder new sheets go to (inherited from CadSheetSubset), the page setup overrides file, the label block, the resource locations (the folders of the Model Views tab) and the view categories. Taken from SheetSet.
- CadSheetSetExamples
The example sheet sets OpenCAD2D ships, the list the Create Sheet Set wizard's first route offers (A12-D19): our own, made by our writer, never AutoCAD's. They lie in the
SheetSetExamplesfolder beside OpenCAD2D.Core.dll:New Sheet Set.dst, an empty set;OpenCAD2D Metric Sheet Set.dst, with the subsets General, Plans and Details, the set properties Client and Project Address, the sheet properties Drawn By and Checked By, and as its sheet creation template the layout "A1 sheet" ofOpenCAD2D-sheets-mm.dwtbeside it; and that template, a drawing in millimetres with the one sheet "A1 sheet" (841 by 594), a frame and a title block whose attributes hold\AcSmfields (the sheet's number and title, the set's name, client and address, who drew and who checked), which a new sheet binds to itself.
- CadSheetSetFields
The
\AcSmfields of a drawing: a title block's%<\AcSm Sheet.Number>%, a set's own%<\AcSm SheetSet.Client>%and the bound form AutoCAD writes into a drawing once the drawing is a sheet,\AcSm Database("D:\Tower\Tower.dst").SheetSet("g…").Component("g…").Number. They are evaluated as AutoCAD 2021 evaluates them (each result below was read from AutoCAD's own FIELD objects for a sheet A-101 "Ground floor" in the subset Plans); the field dialog'sCurrentSheetNumberand its kin write the unbound form and no\AcVar, which AutoCAD shows as####.
- CadSheetSetFile
A sheet set data file (.dst), AutoCAD 2021's own format, opened, changed and saved. The file is UTF-8 XML under a one-byte cipher; its XML tree is kept whole in memory and the model (SheetSet and what hangs from it) reads and writes through that tree, so every element and property this program does not know (the sheet selections, the transmittal setups, the callout block lists, the DWF options) is saved as it was read. A set made here opens in AutoCAD and one made in AutoCAD opens here.
- CadSheetSetHint
The mark a sheet set leaves in the drawing of one of its sheets, AutoCAD's
AcSheetSetData: a dictionary of seven xrecords in the drawing's named object dictionary that names the sheet set's file, the drawing's own file, the layout that is the sheet (by name and by handle), the version of the mark, how many times it has been written and when. AutoCAD finds the set of a drawing it opens from it; so does SSLOCATE here. New Sheet, Import Layout as Sheet, Rename & Renumber and Resave All Sheets write it.
- CadSheetSetLock
The lock file AutoCAD keeps beside a sheet set data file while the set is open for editing:
Tower.DBLforTower.dst, 58 bytes of text for the user "InuYasha" on the machine "INUYASHA-MEV", the lines ended\r\r\nas AutoCAD's own writer ends them (measured on AutoCAD 2021):[UserInfo],UserName=InuYasha,Machine=INUYASHA-MEVand an empty line. A set whose lock is another user's opens read-only, with the lock's words as the tooltip of the palette's lock icon ("Locked for Edit by InuYasha"). A lock of this user on this machine is taken as one's own, so that a lock left by a program that was killed does not shut its user out.
- CadSheetSetOptions
What AutoCAD 2021 keeps of the Sheet Set Manager as system variables, one set for the whole app: SSLOCATE and SSMAUTOOPEN (user settings), SSMPOLLTIME and SSMSHEETSTATUS (AutoCAD keeps them in the registry, here the settings file does), and the folder the new sheet set wizard offers for the .dst. A host that has several drawings gives each session (SheetSetOptions) the same object, so that SETVAR in one drawing is seen in the others, and keeps the values in GlobalSettings (Changed tells it to save them).
- CadSheetSetPlacement
What the Model Views tab does for Place on Sheet, as AutoCAD 2021's Sheet Set Manager does it: the resource drawing is attached as an attached external reference in model space of the sheet's drawing (once, whatever the number of its views placed), a viewport is made in the sheet's layout at a scale of the drawing's list, showing the view, and a named view is saved in the layout around the viewport, which the sheet view of the set points at (AutoCAD's sheet views name a view of the sheet's own drawing). The whole is one undo step.
- CadSheetSetProperty
A custom property of a sheet set, a subset or a sheet: a name, a text value and the owner bits. Read through CustomProperties; set through SetCustomProperty(string, string, CadSheetSetPropertyFlags). A property whose value is not text (the transmittal setups AutoCAD keeps in the set's list) is not listed.
- CadSheetSetPublish
The sheets of a sheet set that a publish is to write, as the Sheet List's Publish items choose them (D17): a CadPublishList of the sheets in set order, each named as AutoCAD names a published sheet (its number, a space and its title, the title alone for a sheet with no number), with the set's output folder, one file or a file each, and the page setup override if one was picked; and a line for each sheet left out and why. Nothing is written here: the window's publisher carries the list out (
CadPublisher.Publish), as it does for the Publish dialog's list.
- CadSheetSetPublishOptions
What a sheet set keeps for publishing (the
PublishOptionsobject of the .dst, AutoCAD's Sheet Set PDF Publish Options): the folder the files go to, whether the sheets are one multi-sheet file or a file each, whether the file's name is asked for, and whether the sheets are published in reverse order. Taken from PublishOptions; it reads and writes the set's tree, and can be changed only inside Change(Action<CadSheetSet>).
- CadSheetSetRequest
What a sheet set command hands the window (the Payload of OPENSHEETSET, NEWSHEETSET and SSLOCATE): the sheet set data file to open in the Sheet Set Manager, or none where the window is to ask the user for it in its own dialog (the Open Sheet Set dialog, the Create Sheet Set wizard).
- CadSheetSetResources
What the Model Views tab reads of a resource location (a folder the set lists under
Resources) and of the drawings in it, with no window and without changing a file: the drawings of a folder, and the named views of model space of one.
- 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, notCadSheet, because CadSheet is a sheet of a spreadsheet.
- 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.
- CadSheetView
A sheet view: a named model space view of a drawing placed on a sheet (what Place on Sheet in the Model Views tab makes), with a number and a title and the view category it is listed under. Taken from Views.
- CadTransmittal
eTransmit of a sheet set (A12 D18): gathers what a set needs to be opened somewhere else, one zip of the set's data file, the drawings of its sheets, the files those drawings reference (external references, images, PDF underlays, the files of data links), the sheet creation templates and the page setup overrides file, the plot style tables the layouts of the sheets name, and the font files the text styles name that sit beside the drawings or in the support folders, with a report,
transmittal.txt. It is AutoCAD's Create Transmittal with itsUse organized folder structureand a package of the zip type, and nothing of its other types, setups or paths.
- CadTransmittalFile
A file of a transmittal, a row of the Create Transmittal dialog's Files Table: what a sheet set needs to be opened elsewhere, where it is, where it goes in the zip, how big it is and why it is there. Made by Gather(IEnumerable<CadSheetComponent>). A file that is not found is listed, unchecked, so that the report says so.
- CadTransmittalResult
What a transmittal wrote: the zip, how many files went into it, and the report that went in with them.
- CadViewCategory
A view category of a sheet set: a name that sheet views are listed under in the Sheet Views tab. A new set holds one with no name. Taken from ViewCategories.
Enums
- CadSheetLayoutStatus
How FindLayout() found the layout of a sheet in its drawing (D7).
- CadSheetListData
What a column of a sheet list table shows of each sheet, the Data type list of the Insert Sheet List Table dialog.
- CadSheetSetPropertyFlags
The owner bits of a custom property of a sheet set, the
PropertyFlagsof AutoCAD's sheet set API (read from the type library ofAcSmComponents). A property is defined in the sheet set's own list: Set for one the set holds, Sheet for one every sheet holds (the set's entry carries the default); each sheet's list then carries its own value. The bits this program does not write, Subset and Child, are kept as a file has them.
- CadTransmittalFileKind
What a file of a transmittal is for: why a sheet set sends it. A file two reasons ask for has the first of these in this order.