Table of Contents

Class CadSheetListTable

Namespace
OpenCAD2D.SheetSets
Assembly
OpenCAD2D.Core.dll

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.

public static class CadSheetListTable
Inheritance
CadSheetListTable
Inherited Members

Remarks

The settings are kept in the table's extension dictionary under the xrecord RecordName, our own: to AutoCAD the table is a plain one whose fields still update. Update(CadDocument, string, CadSheetSetFile, CadSheetListTableSettings) lists the set again from them, in a new table of the same place, style and column widths in the same undo step, the words typed in its cells by hand gone.

Fields

RecordName

The name of the xrecord in the table's extension dictionary that keeps the settings.

Methods

Insert(CadDocument, CadSheetSetFile, CadSheetListTableSettings, GeoPoint2, string)

Makes the table at a corner of the current layout, in the table style named (the drawing's current one where null; Standard where it has none of that name), as one undo step.

ReadSetFile(CadDocument, string)

Reads the path of the sheet set a sheet list table was made from.

ReadSettings(CadDocument, string)

Reads the settings a sheet list table keeps.

Update(CadDocument, string, CadSheetSetFile, CadSheetListTableSettings)

Lists the set again in a table made by Insert(CadDocument, CadSheetSetFile, CadSheetListTableSettings, GeoPoint2, string), as Update Sheet List Table does: the rows are made anew from the settings the table keeps and the set as it is now, in a table of the same corner, style and column widths that takes the old one's place (one undo step), so that a sheet added since is listed and one removed is not.