IntelliCAD 11.1 Object Library
AddPViewport Method
See Also 
Center
A Point object specifying the coordinate location for the paperspece viewport center.
Width
The width of the paperspace viewport.
Height
The height of the paperspace viewport.
PaperSpace Collection : AddPViewport Method

Description

Adds a paperspace viewport given the center, width and height.

Syntax

Visual Basic
Public Function AddPViewport( _
   Optional ByVal Center As Point = 0, _
   Optional ByVal Width As Double = 0, _
   Optional ByVal Height As Double = 0 _
) As PViewport

Parameters

Center
A Point object specifying the coordinate location for the paperspece viewport center.
Width
The width of the paperspace viewport.
Height
The height of the paperspace viewport.

Example

Private Sub CommandButton10_Click()

     Dim myViewport As IntelliCAD.PViewport

     Dim cenPt As IntelliCAD.Point

     Set cenPt = Library.CreatePoint(4, 4, 0)

     ThisDocument.ActiveSpace = vicPaperSpace

     Set myViewport = ThisDocument.PaperSpace.AddPViewport(cenPt, 33, 44)

     ThisDocument.Regen vicAllViewports

End Sub

See Also

© 2022 IntelliCAD Technology Consortium. All Rights Reserved.