CadTiledViewport
from OpenCAD2D import CadTiledViewport
class CadTiledViewport(System.Object) ยท CadTiledViewport in the .NET reference
A tiled viewport of model space, as a record of AutoCAD's VPORT table: where it lies in the drawing area, from (0, 0) at the lower left to (1, 1) at the upper right (groups 10, 20, 11 and 21), and the view it shows (its centre, 12 and 22, and its height, 40, its width the height times the aspect, 41).
Properties and fields
Bottom
@property
def Bottom(self) -> float
Gets the bottom edge, a share of the drawing area's height from 0 to 1.
Center
@property
def Center(self) -> GeoPoint2
@Center.setter
def Center(self, value: GeoPoint2) -> None
Gets or sets the centre of the view, in drawing units; the window sets it as the view moves.
Corners
@property
def Corners(self) -> str
Gets the corners as -VPORTS ? writes them: "0.5000,0.0000 1.0000,1.0000".
Height
@property
def Height(self) -> float
@Height.setter
def Height(self, value: float) -> None
Gets or sets the height of the view, in drawing units.
Id
@property
def Id(self) -> int
Gets the number of the viewport, as AutoCAD's CVPORT gives the current one: 2, 3, 4 and on.
Left
@property
def Left(self) -> float
Gets the left edge, a share of the drawing area's width from 0 to 1.
Right
@property
def Right(self) -> float
Gets the right edge.
Top
@property
def Top(self) -> float
Gets the top edge.
Width
@property
def Width(self) -> float
@Width.setter
def Width(self, value: float) -> None
Gets or sets the width of the view, in drawing units.