codebase="hhctrl.ocx#Version=4,73,8561,0"> codebase="hhctrl.ocx#Version=4,73,8561,0" > codebase="hhctrl.ocx#Version=4,73,8561,0" >
 
  Viewport object

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

VBA class name:

AcadViewport 

Create using:

Viewports.Add 

Access via:

Viewports.Item
Document.ActiveViewport 

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.

Methods

Delete

GetExtensionDictionary

GetGridSpacing

GetSnapSpacing

GetXData

SetGridSpacing

SetSnapSpacing

SetView

SetXData

Split  

Properties

Application

ArcSmoothness

Center

Direction

Document

GridOn

Handle

HasExtensionDictionary

Height

LowerLeftCorner

Name

ObjectID

ObjectName

OrthoOn

OwnerID

SnapBasePoint

SnapOn

SnapRotationAngle

Target

UCSIconAtOrigin

UCSIconOn

UpperRightCorner

Width  

Events

Modified  

 

   Comments?