|View HTML Version||VPOutlineV1-1.html|
This program allows the user to automatically generate a polyline in modelspace representing the outline of a selected paperspace viewport.
The command is only available in paperspace (that is, when a layout tab other than Model is the current layout, and no viewports are active). Upon issuing the command syntax vpo at the AutoCAD command-line, the user is prompted to select a viewport for which to construct the viewport outline in modelspace.
Following a valid selection, the boundary of the selected viewport is transformed appropriately to account for the position, scale, rotation, & orientation of the modelspace view displayed through the selected viewport, and a 2D polyline (LWPolyline) representing this transformed boundary is constructed in modelspace.
The program is compatible for use with all Rectangular, Polygonal & Clipped Viewports (including those with Arc segments), and with all views & construction planes.
Instructions for Running
Please refer to How to Run an AutoLISP Program.