Draw a Viewport Outline in Model Space (VPO)

You are working in model space and you need to know what part of the drawing a sheet actually shows. Maybe you want to mark the sheet limits, line up match lines, or check that nothing important falls just outside a viewport. The answer is in the layout, but the geometry you want is in model space.

The manual way, and why it hurts

There are a few usual approaches. You can step into the viewport and draw a rectangle by eye along the edges you can see. You can draw a polyline in paper space and send it to model space with CHSPACE. Or you can zoom around the layout and read coordinates off the corners.

All of these are fiddly, and they get more fiddly when the viewport is clipped to a polygon, has an arc in its boundary, has a rotated view, or is at a different scale from the one you remember. You end up with an outline that looks about right, and then you have to trust it.

What VPO does

VPO (Viewport Outline) is in both TerraDraft Lite and TerraDraft Pro. From a layout tab, you select a viewport and it draws a closed polyline in model space that outlines exactly the area that viewport displays. It handles rectangular viewports and clipped ones, whether the clip is polygonal or has arc segments, and it takes the view direction and twist angle into account. You can select the viewport border itself or its clip boundary.

viewport to model space.gif

Step by step

  1. Set the current layer to the one you want the outline on. VPO draws on whatever layer is current.
  2. Click a layout tab. VPO does not run in the Model tab.
  3. Type VPO and press Enter.
  4. At Select viewport border (or its clip boundary): click the viewport.
  5. The command line confirms: Viewport outline drawn in model space (N vertices). A plain rectangular viewport gives 4 vertices.
  6. Go to the Model tab. The closed polyline is there.

For another viewport, run VPO again. If the viewport is clipped, the outline follows the clip boundary, and arc segments in that boundary are kept as arc segments in the polyline rather than being reduced to straight lines. That means the vertex count in the message depends on the shape of the clip, not only on how many corners you see.

Tips and common mistakes

  • Layout tabs only. In model space you get VPO must be run from a layout tab.
  • One viewport per run. There is no loop, so repeat the command for each viewport you want to outline.
  • Click the right object. If what you pick is not a viewport or a viewport clip boundary, you get That is not a viewport or a viewport clip boundary. If you press Enter without picking, you get Nothing selected.
  • The outline is a snapshot. It is an ordinary polyline and does not update if the viewport is later resized, clipped differently or re-panned. Delete it and run VPO again.
  • Think about the layer. The outline goes on the current layer, so if you do not want it to plot, make a non-plotting layer current before you run the command.

Once the outline exists it is just a polyline. If it hides or gets hidden by other objects in model space, the draw order shortcuts help; see DF, DB, DAO and DBO.

Lite and Pro

VPO is the same in both editions, so it is available in the free TerraDraft Lite. Pro does not change it. Only one edition should be installed at a time.

Try it

VPO is included in the free edition: download TerraDraft Lite. It was built and tested on AutoCAD 2025 and runs on Windows in full AutoCAD (not LT). If you want to see the rest of the toolset, TerraDraft Pro is here.

Try it on your own drawing

TerraDraft Lite is free to download.

Download Lite