Skip to content
Tutorials Center
My learning

Topics

Lesson 28 of 38 ยท Dimensions and Layouts

AutoCAD Viewports and Drawing Scale: MVIEW, ZOOM XP, Annotative

Create layout viewports with MVIEW, set exact scales with the viewport scale list or ZOOM nXP, lock viewports, clip them, freeze layers per viewport and use annotative scaling for text.

A viewport is a window in a layout that shows part of model space at a chosen scale. One sheet can hold several viewports: a plan at 1:100, a detail at 1:10 and a section at 1:20, all from the same model. Getting the viewport scale exactly right is the heart of layout work, and with annotative objects the text and dimensions follow along.

AutoCAD cannot run on this site. The program's behavior is described as it works there, and the runnable examples are labelled JavaScript stand-ins for the arithmetic.

Creating viewports

In a layout tab, use Layout > Layout Viewports or type MVIEW (alias MV):

  • Rectangular: click two corners.
  • Polygonal: click a polygon outline, for an L-shaped window.
  • Object: convert a closed polyline, circle or ellipse into a viewport.
  • Fit / 2 / 3 / 4: create several viewports at once with -VPORTS, or New Viewports (VPORTS) for a standard arrangement.

Place viewports on a dedicated layer (for example G-VPORT) with plotting off, so the border does not print. Edit the border with grips or VPCLIP (clip a viewport to a polyline shape), and delete the original if you create a new one.

Setting the scale

Make sure the viewport is selected, then use the scale list in the status bar, or the Standard Scale drop-down in the Properties palette (Ctrl+1), or the lock-aware command line:

TEXT
Command: ZOOM
Specify window corner or [All/Center/Dynamic/Extents/Previous/Scale/Window/Object] <real time>: 0.02XP

XP means "times paper space". A scale of 1:50 is 1/50XP or 0.02XP; 1:100 is 0.01XP; 2:1 is 2XP. The same scale in plain numbers: the multiplier is plotted length / real length. When the model is in millimeters and the layout is in millimeters, that ratio is just the inverse of the scale denominator.

JS Stand-in: convert a drawing scale to a ZOOM XP value

Press Run (or Ctrl + Enter) to see the console output here.

No output.

Lock the viewport

After setting the scale, lock the viewport: select it, then click the padlock on the viewport (or the status-bar lock) or set Display locked: Yes in Properties. Without it, a mouse-wheel zoom inside the viewport changes the scale and ruins the sheet. When a viewport is locked you can still pan the model by using the Pan tool, which does not alter the scale. To unlock, set the property back.

If the scale list lacks a scale you need, add it with SCALELISTEDIT; scales such as 1:25 or 1:75 are common in some regions.

Per-viewport layers

A layer can be frozen in just one viewport (the VP Freeze column in the Layer Properties Manager when a viewport is active, or the LAYVPI command). That lets the floor plan viewport show furniture while the structural viewport hides it. The related setting New VP Freeze automatically freezes a layer in each newly created viewport, handy for annotation layers that belong to one view only. VPLAYER is the command-line equivalent.

JS Stand-in: viewport layer overrides

Press Run (or Ctrl + Enter) to see the console output here.

No output.

Annotative scaling

Annotative objects (text, dimensions, hatches, blocks, multileaders) keep a constant size on paper regardless of the viewport scale. You switch the annotation scale (status bar, bottom right, also CANNOSCALE), and any annotative object assigned to that scale shows at the correct size. Key points:

  • Create annotative styles (see text and dimension styles) and draw in model space.
  • An annotative object can have several scales. Use OBJECTSCALE to add or remove them, and ANNOAUTOSCALE to add scales automatically when you change the annotation scale.
  • Viewport annotation scale is linked to the viewport scale by default; ANNOALLVISIBLE shows objects whose scale does not match.
  • Annotative objects appear only in viewports whose scale matches their list. If notes vanish, check ANNOALLVISIBLE and the scales.

Many offices prefer non-annotative text, set at the plotted height multiplied by the scale (see the text lesson), because it is simpler to share. Pick one method and use it consistently.

Working in and around viewports

  • Dimension in paper space through a viewport with DIMLFAC set negative (so values read the model's size) when you want sheet-based dimensions; most people dimension in model space instead.
  • Use the Viewport contextual ribbon: Clip, Maximize, Lock, Display Locked.
  • Rotate the view inside a viewport with MVSETUP or by setting a UCS, then PLAN and UCS > View. For a rotated plan, rotate the viewport contents; do not rotate the model.
  • Use Properties > Shade plot and Visual style to plot 3D viewports (see 3D views).
  • Use Linetype scale in paper space (PSLTSCALE = 1) so dashes stay consistent between viewports.

Common mistakes

  • Zooming a viewport with the mouse wheel, then discovering the scale is 1:47.3.
  • Using a text height of 2.5 in model space of an annotative drawing and wondering why it plots twice as large.
  • Leaving viewports with Plot on, so their rectangles print.
  • Applying a viewport to the wrong layer (frozen), making the border disappear.
  • Freezing a layer globally instead of per viewport.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. Which ZOOM option sets a viewport to scale 1:100?

    A 1:100 scale is 1/100, which is 0.01XP (times paper space).
  2. 2. Why lock a viewport after setting its scale?

    A locked viewport keeps its scale when you pan or zoom with the mouse wheel inside it.
  3. 3. How do you hide a layer in only one viewport?

    VP Freeze affects only the active viewport, while global freeze or off hides everywhere.
  4. 4. What is true of annotative text?

    Annotative objects scale automatically with the annotation scale, so their paper size stays constant.

Summary

  • Viewports show model space inside layouts; create them with MVIEW, on a non-plotting layer.
  • Set exact scales with the scale list or ZOOM nXP (1:50 is 0.02XP), then lock the viewport.
  • Use VP Freeze to show different layers in different viewports.
  • Annotative objects adjust their size to the annotation scale; non-annotative text uses plotted height x scale.

Next: 3D workspace, UCS and visual styles