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
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