Table of Contents

Class CadDesignCenterDrawing

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

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 (Items(CadDesignCenterKind)), as the tree of AutoCAD's DesignCenter does under a drawing, and is what CadDesignCenter copies from.

public sealed class CadDesignCenterDrawing
Inheritance
CadDesignCenterDrawing
Inherited Members

Properties

Name

Gets the drawing's name as the tree shows it: the file's name with its extension, or the open drawing's title.

Path

Gets the full path of the file; null for a drawing not saved yet.

Methods

Items(CadDesignCenterKind)

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(CadDocument, string)

Lists a drawing open in the presenter, as the Open Drawings tab does; it is read and never changed by listing.

Open(string)

Reads a drawing file, a DWG, DWS, DWT or DXF, to browse it; the file is not changed and not kept open.