The collection of all viewports in the drawing.
Supported Platforms: Windows only
AcadViewports
Object AcadObject AcadViewports
VBA
Not applicable
VBA
Document.Viewports
These members are part of this object:
Methods |
Properties |
Events |
---|---|---|
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.