CadDesignCenterDrawing
from OpenCAD2D import CadDesignCenterDrawing
class CadDesignCenterDrawing(System.Object) ยท CadDesignCenterDrawing in the .NET reference
A drawing DesignCenter browses: a file read for it alone and not changed, or a drawing open in the presenter. It lists what the drawing holds by kind (CadDesignCenterDrawing.Items), as the tree of AutoCAD's DesignCenter does under a drawing, and is what CadDesignCenter copies from.
Properties and fields
Name
@property
def Name(self) -> str
Gets the drawing's name as the tree shows it: the file's name with its extension, or the open drawing's title.
Path
@property
def Path(self) -> str | None
Gets the full path of the file; null for a drawing not saved yet.
Methods
Items
def Items(self, kind: CadDesignCenterKind) -> System.Collections.Generic.IReadOnlyList[CadDesignCenterItem]
Gets what the drawing holds of a kind, in ordinal order of the names, letters of either case alike first. Blocks are those a user names, with their comments; layers leave out those of external references; linetypes leave out ByLayer and ByBlock; layouts leave out Model.
Of
@staticmethod
def Of(document: CadDocument, title: str) -> CadDesignCenterDrawing
Lists a drawing open in the presenter, as the Open Drawings tab does; it is read and never changed by listing.
Open
@staticmethod
def Open(path: str) -> CadDesignCenterDrawing
Reads a drawing file, a DWG, DWS, DWT or DXF, to browse it; the file is not changed and not kept open.