Views Collection (ActiveX)

The collection of all views in the drawing.

Supported Platforms: Windows only

Class Information

Class Name

AcadViews

Object Inheritance
Object
   AcadObject
      AcadViews
Create Using

VBA

Not applicable
Access Via

VBA

Document.Views

Members

These members are part of this object:

Remarks

To add a new member to the collection, use the Add method. To select a specific view, use the Item method. To delete a specific view, use the Delete method found on the View object.

Although the Views collection inherits a Delete method, you cannot actually delete the collection. Attempting to delete the Views collection will result in an error. The Delete method has been removed from the documentation for this collection.

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