Viewports Collection (ActiveX)

The collection of all viewports in the drawing.

Supported Platforms: Windows only

Class Information

Class Name

AcadViewports

Object Inheritance
Object
   AcadObject
      AcadViewports
Create Using

VBA

Not applicable
Access Via

VBA

Document.Viewports

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 viewport, use the Item method. To delete a specific viewport, use the DeleteConfiguration method or the Delete method found on the Viewport object.

The number of viewports you can have active at one time is controlled by the MAXACTVP system variable. There can be only one instance of the Viewports collection. The Viewports collection is predefined for each drawing. You can make multiple references to it by using the Viewports property. Once done with an object, the reference is automatically released.