Table of Contents

CadSheetListTable

from OpenCAD2D.SheetSets import CadSheetListTable

class CadSheetListTable(System.Object) · CadSheetListTable in the .NET reference

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.

Properties and fields

RecordName

.NET

RecordName: ClassVar[str]

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

Methods

Insert

.NET

@staticmethod
def Insert(
    document: CadDocument,
    file: CadSheetSetFile,
    settings: CadSheetListTableSettings,
    corner: GeoPoint2,
    tableStyle: str | None = ...,
) -> str

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

.NET

@staticmethod
def ReadSetFile(document: CadDocument, handle: str) -> str

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

ReadSettings

.NET

@staticmethod
def ReadSettings(document: CadDocument, handle: str) -> CadSheetListTableSettings

Reads the settings a sheet list table keeps.

Update

.NET

@staticmethod
def Update(
    document: CadDocument,
    handle: str,
    file: CadSheetSetFile | None = ...,
    settings: CadSheetListTableSettings | None = ...,
) -> str

Lists the set again in a table made by CadSheetListTable.Insert, 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.