Viewport Home

A viewport can be added only in the "Paper Space" block and looks like a picture frame containing a "photograph" of the "Model Space" view. The frame displays the Model Space at the scale and orientation that you specify. You can also specify which layers are visible in each viewport.

To add a viewport into a drawing use following functions:

Function Meaning
lcBlockAddViewport Adds a viewport

A viewport has properties and functions derived from base class and the following specific properties:

Property Type Access Meaning
LC_PROP_ENT_...    Base class properties

   Viewport rectangle on the Paper Space
LC_PROP_VPORT_LEF float RW X of left side
LC_PROP_VPORT_BOT float RW Y of bottom side
LC_PROP_VPORT_RIG float RW X of right side
LC_PROP_VPORT_TOP float RW Y of top side
LC_PROP_VPORT_W float RW Width
LC_PROP_VPORT_H float RW Height
LC_PROP_VPORT_BORDER bool RW Display border line around viewport
LC_PROP_VPORT_FIXSCALE bool RW Fixed scale

   View area of the Model Space
LC_PROP_VPORT_VX float RW View center X
LC_PROP_VPORT_VY float RW View center Y
LC_PROP_VPORT_VSCALE float RW Scale (Drawing units per paper unit)
LC_PROP_VPORT_VANGLE float RW Rotation angle

Viewport specific functions:

Function Meaning
lcVportSetView Defines the Model Space area which will be visible in the viewport
lcVportLayerDlg Calls dialog "Layers override" for specified viewport
lcVportLayerCmd Overrides some Layers properties for specified viewport

See also

  Retrieve objects