CadSheetSetFields
from OpenCAD2D.SheetSets import CadSheetSetFields
class CadSheetSetFields(System.Object) · CadSheetSetFields in the .NET reference
The \AcSm fields 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's CurrentSheetNumber and its kin write the unbound form and no \AcVar, which AutoCAD shows as ####.
Methods
Bind
@staticmethod
def Bind(document: CadDocument, layoutName: str, file: CadSheetSetFile, sheet: CadSheetSetSheet) -> int
Binds the unbound fields of one layout of a sheet's drawing to its sheet, as AutoCAD does when a sheet is made or a layout imported: \AcSm Sheet.Number becomes \AcSm Database("…\Tower.dst").SheetSet("g…").Component("g…").Number with the sheet's ID, Subset.Name the same with the subset's ID, and SheetSet.Client the same with no component, so that AutoCAD shows the right words in a sheet made here. The fields are evaluated again; a placeholder, a field already bound and a field of another evaluator are left as they are, and so is every field of another layout or of model space. A sheet in the set itself has no subset, so its Subset.Name stays unbound and shows ####.