codebase="hhctrl.ocx#Version=4,73,8561,0"> codebase="hhctrl.ocx#Version=4,73,8561,0" > codebase="hhctrl.ocx#Version=4,73,8561,0" >
 
  Documents Collection

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

VBA class name:

AcadDocuments 

Create using:

N/A 

Access via:

Application.Documents 

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.

Methods

Add

Close

Item

Open

Properties

Application

Count

 

   Comments?