KufCad

MVIEW — create and manage viewports

Ribbon: Output ▸ Layout ▸ ViewportsCommand: MVIEWAlias: MV

A viewport is a "window" on the sheet through which you see the model at a given scale. A layout can hold several viewports, each with its own view and scale (for example a plan at 1:100 and a detail at 1:20). MVIEW only works on a layout tab.

The Viewports button on the Layout panel
Figure 11.17 — The Viewports button 1 on the Layout panel; the Layout button 2 above it.

A new layout comes with one viewport that fills the sheet (dashed border 1):

The default viewport
Figure 11.18 — The default viewport 1 of a new layout.

A viewport cannot yet be selected by clicking on the sheet, so Delete / ERASE do not remove it. Delete a viewport with MVIEW ▸ D (Delete) and a click inside it — the command line reports Viewport deleted., and U brings it back. Or turn it off with MVIEW ▸ OFF (below): a viewport that is off shows only its dashed frame, does not display the model and is not plotted.

Drawing a rectangular viewport

  1. Click Viewports, or type MV and press Enter. The prompt: Specify corner of viewport or [ON/OFF/Fit/Lock/UnLock/Object/Polygonal/Delete/2/3/4] <Fit>:
  2. Click the first corner 1 on the sheet.
  3. Click the opposite corner 2. The viewport appears and fits the whole model automatically.
Drawing a viewport
Figure 11.20 — The first corner 1 is set; the cursor is at the opposite corner 2. The command line 3 is asking for the opposite corner.
BeforeDefault viewport turned off
→
AfterNew viewport
Figure 11.19 — The sheet with the default viewport turned off (left), then a rectangular viewport added (right) 1. Each viewport shows its scale at its lower-left corner, for example 1:1.78.

Pick both corners with the mouse or type sheet coordinates (millimetres), for example MVIEW → 10,10 → 100,80.

Options

At the first prompt type a letter then press Enter (or click the matching button on the command line):

The MVIEW options
Figure 11.21 — The MVIEW prompt with the option buttons ON · OFF · Fit · Lock · UnLock · Object · Polygonal · Delete · 2 · 3 · 4.
TypeWhat it does
Enter or FFit — one viewport filling the area inside the margins
2Two viewports side by side (left / right)
2HTwo viewports stacked (top / bottom)
3Three viewports: one on the left, two on the right
4Four viewports (2 × 2 grid)
PPolygonal — a polygon viewport (below)
OObject — a viewport shaped like a closed object on the sheet
OFF / ONTurn the model display in a viewport off / on
L / ULLock / UnLock — lock / unlock a viewport’s scale
DDelete — delete the viewport you click

2 and 4 split the area inside the margins evenly and each viewport fits the model:

2HTwo stacked viewports (2H)
→
4Four viewports (4)
Figure 11.22 — Quick splits with 2H (left) and 4 (right).

Polygonal viewport

  1. Type MV, Enter, then P, Enter.
  2. Click the vertices 1–5 one after another.
  3. Press Enter (or type C) to close the polygon.
A polygonal viewport
Figure 11.23 — The five vertices 1–5 of the polygonal viewport.

Viewport from an object

MVIEW ▸ O turns a closed object on the sheet (circle, closed polyline, rectangle) into a viewport of exactly that shape: type MV, Enter, O, Enter, then click inside the object. If you click outside every closed object on the sheet the command line says:

The MVIEW Object message
Figure 11.24 — Clicking where there is no closed object on the sheet: MVIEW: click inside a closed object on the sheet.

Drawing commands typed on a layout tab (CIRCLE, LINE…) currently create objects in the model, not on the sheet; to move an object onto the sheet use CHSPACE — moved objects show on the sheet straight away.

Turn viewports off, on, lock

Type MV, Enter, then OFF (or ON, L, UL) and click inside the viewport you want to change:

OFFOFF
→
LockLOCK
Figure 11.25 — The prompt after typing OFF (left) and L (right); click a viewport to apply.
  • An off viewport does not draw the model and is not plotted. Use it to tidy the sheet temporarily or to "hide" the default viewport.
  • A locked viewport cannot change scale (the scale box on the status bar is greyed out) and cannot have its model view panned — see Entering a viewport.

See also: VPCLIP to clip a viewport to any shape after creating it, VPLAYER to hide layers in one viewport only.