Viewport Object (ActiveX)

A bounded area that displays some portion of a drawing's model space.

Supported Platforms: Windows only

Class Information

Class Name

AcadViewport

Object Inheritance
Object
   AcadObject
      AcadViewport
Create Using

VBA

Viewports.Add
Access Via

VBA

Viewports.Item
Document.ActiveViewport

Members

These members are part of this object:

Remarks

The ActiveSpace property (equivalent to the TILEMODE system variable) determines the type of viewport used.

No editing or view changes can be performed unless the viewport is active. To make a viewport active, use the ActiveViewport property on the Document object.

Once changes have been completed, the viewport must be reset as the active viewport for the changes to appear. To reset the active viewport, simply call the ActiveViewport property again with the updated Viewport object.