Documents Collection (ActiveX)

The collection of all AutoCAD drawings that are open in the current session.

Supported Platforms: Windows only

Class Information

Class Name

AcadDocuments

Object Inheritance
Object
   AcadObject
      AcadDocuments
Create Using

VBA

Not applicable
Access Via

VBA

Application.Documents

Members

These members are part of this object:

Methods

Properties

Events

Add

Close

Item

Open

Application

Count

None

Remarks

To add a new member to the collection, use the Add or Open methods. To select a specific document, use the Item method. To close a specific document, use the Close method found on the Document object. To close all documents, use the Close method found on this collection.

There is no limit to the number of documents that you can create in your drawing. However, there can be only one instance of the Documents collection. The Documents collection is predefined for each application. You can make multiple references to it by using the Documents property. Once done with an object, the reference is automatically released.