AutoCAD File Management & Plotting: The Complete Guide — From PURGE to PDF




AutoCAD · File Management & Plotting

Ever finished a drawing only to find the file is inexplicably huge? Sent a DWG to a client and gotten a call saying they can’t open it? Plotted a sheet and ended up with line weights all over the place? These are classic signs of poor file hygiene and plot configuration.

“From PURGE & AUDIT cleanup routines to DWT templates, CTB plot styles, and PDF output — everything you need to know about managing and plotting AutoCAD drawings, all in one place.”

This guide follows Autodesk’s official Knowledge Base recommendations and covers drawing file optimization (PURGE/AUDIT), building your own drawing template (DWT), model space–based plotting workflows, CTB configuration, and PDF output — all the essentials, start to finish.


1. Slimming Down Your DWG — PURGE & AUDIT

Every AutoCAD session leaves behind invisible junk data: unused block definitions, empty layers, orphaned text styles, leftover dimension styles. If you ignore them, file sizes balloon and performance degrades every time you open or save.

1-1. AUDIT — Drawing Integrity Check

The AUDIT command scans the drawing’s internal database and automatically fixes corrupt data. Autodesk’s official documentation recommends running AUDIT before PURGE.

  • How to use: Type AUDIT → Enter → Fix any errors? Y → Enter
  • Results are reported in the command line. “0 errors found” is ideal; any errors found are corrected automatically.

1-2. PURGE — Removing Unused Definitions

The PURGE command strips out unused blocks, layers, linetypes, text styles, and dimension styles in one pass.

  • How to use: Type PURGE → Enter → Click “Purge All” in the dialog
  • Check “Purge Nested Items”: This option at the bottom of the dialog is critical — it catches unused definitions buried inside block definitions.
  • Run it multiple times: One pass often isn’t enough. Repeat 2–3 times until there’s nothing left to purge.
⚠️ Heads Up — PURGE Has No Mercy

PURGE removes any definition that isn’t currently in use — including text styles, dimension styles, and layers you created in advance but haven’t applied yet.

A practical workaround: create a block containing one object for each style you want to preserve (a single line, a text object, a dimension), then place that block on a non-printing layer (e.g., Z-NOPRINT). AutoCAD will treat those styles as “in use” and skip them during PURGE. Especially useful in DWT templates.

💡 Removing Regapps with -PURGE

There’s a hidden file-size killer that the standard PURGE dialog doesn’t show: Regapps (Registered Applications). These are metadata entries left behind by LISP routines and ARX plug-ins — they persist even after you delete the objects that created them.

To remove them: -PURGE (hyphen required) → Enter → R (Regapps) → Enter → * (select all) → Enter → N (skip individual confirmation) → Enter

This single step can cut file size in half. Autodesk Support includes it as a mandatory step in their file optimization procedure.

1-3. Additional Optimization Tips

  • OVERKILL: Removes duplicate and overlapping objects. Be aware that running it on everything can delete center lines as well — see Section 1-4 below for how to handle that safely.
  • Reset the scale list: -SCALELISTEDIT → R (Reset) → Y (Yes). An inflated annotation scale list can noticeably slow down a drawing; this resets it to defaults.
  • Set ISAVEPERCENT = 0: AutoCAD normally saves incrementally (appending only the changed portion to the file), which causes the file to grow over time. Setting ISAVEPERCENT to 0 forces a full save every time, keeping file size at a minimum. Note that full saves take longer on large drawings — use this setting where it makes sense.

1-4. OVERKILL — Excluding Center Lines (CEN Layer) from Cleanup

OVERKILL is a powerful command for cleaning up overlapping and redundant geometry. The problem is that running it on a full selection can delete shorter objects that fall within the boundary of a longer one — including center lines. A short centerline overlapping a longer one, or a small circle sharing a center point with a larger one, can quietly disappear.

Once center lines are gone, snapping for dimensions stops working and editing becomes frustrating without a reference. The fix is simple: OVERKILL skips objects on locked layers entirely.

  1. Lock the CEN layer — Open Layer Manager (LA) or use the layer dropdown in the ribbon and click the 🔒 lock icon on the CEN layer
  2. Run OVERKILL — Even with an “All” selection, the locked CEN layer is completely ignored
  3. Unlock the CEN layer — Click the lock icon again to restore normal editing

If you need to exclude multiple layers, just lock all of them before running OVERKILL. No LISP, no complex selection sets — just lock → OVERKILL → unlock.

💡 Locking/Unlocking Layers via the Command Line

If opening the Layer Manager each time feels tedious, you can do it straight from the command line:

  • Lock: -LAYER → Enter → L (Lock) → Enter → CEN → Enter → Enter
  • Unlock: -LAYER → Enter → U (Unlock) → Enter → CEN → Enter → Enter
⚠️ Why OVERKILL Deletes Center Lines

OVERKILL’s logic is this: when one object is fully overlapping or completely contained within another, the shorter or smaller one gets deleted. For example, a short centerline that falls entirely within a longer one will be removed. Similarly, a small circle that shares its center point with a larger concentric circle may be deleted. Locking the layer removes those objects from the selection set entirely — which is the safest approach.

Recommended Cleanup Order

Step Command Purpose
1 AUDIT Check and repair drawing database integrity
2 PURGE (×2–3) Remove unused blocks, layers, styles, etc.
3 -PURGE → R (Regapps) Strip out registered application metadata
4 OVERKILL (with CEN locked) Remove duplicate/overlapping objects
5 -SCALELISTEDIT → R Reset bloated annotation scale list
6 SAVEAS Save a clean copy of the optimized drawing

2. Building Your Own Drawing Template (DWT)

Setting up layers, text styles, and dimension styles from scratch every time you start a new drawing is a real time sink. Save your environment once as a DWT (Drawing Template) file, and every new drawing opens ready to go.

2-1. What to Include in Your Template

  • Layers: Your standard layer names, colors, linetypes, and lineweights, pre-configured
  • Text styles: Your preferred fonts and heights
  • Dimension styles: DIMSCALE, arrow sizes, text height, and so on
  • Units: Set via the UNITS command (mm or inches, and precision level)
  • Title block: Your company’s title block pre-inserted in model space, ideally as a block scaled to each drawing format

2-2. Saving as a DWT

  1. Prepare a drawing with all your settings configured. The drawing itself should be empty — no geometry, just configuration.
  2. Run SAVEAS → change the file type to “AutoCAD Drawing Template (*.dwt)”
  3. Give it a descriptive name (e.g., “My_A3_Template.dwt”)
  4. Save it to the default template folder: C:\Users\[username]\AppData\Roaming\Autodesk\AutoCAD 20XX\…\Template — it will then appear in the new drawing dialog automatically.
💡 Make Your Title Block a Block (with Attributes)

If you draw your title block as raw lines and text, you’ll end up manually editing date, drawing number, and revision fields in every single drawing. Instead, build it as a block with Attributes — you’ll be prompted to fill in the fields when you insert it, and you can update everything in bulk later. The ISO 7200 standard is a solid reference for what fields to include.


3. Model Space vs. Paper Space — Where Should You Plot From?

AutoCAD gives you two work environments: Model Space and Paper Space (Layout). Textbooks and tutorials often insist that plotting from Paper Space is the “correct” way — but in practice, particularly for 2D mechanical drafting, the story is different.

3-1. In Mechanical Drafting, Model Space Is the Norm

In most mechanical design shops, the standard workflow is to build the drawing — title block, dimensions, annotations, and all — entirely in Model Space, and plot directly from there. The reasons are practical:

  • What you see is what you get: No viewports, no layout tabs, no mental model switching. You draw it, you plot it.
  • Everything in one file: Assembly drawing and detail drawings side by side in a single DWG — easy to cross-reference and manage.
  • Scale management is straightforward: Set DIMSCALE and text heights to match your drawing scale, and a single Model Space setup is all you need for clean output.
  • Everyone on the same page: Collaborators and vendors are likely working the same way, so there’s less chance of confusion when sharing files.

3-2. Key Settings for Plotting from Model Space

To get reliable plot quality from Model Space, the golden rule is: draw all geometry at true 1:1 scale, and scale only the title block and annotation to match the drawing scale.

  1. Draw geometry at 1:1: A 100mm part is drawn as 100 units. Never scale down the actual geometry.
  2. Scale up the title block: For an A3 sheet (420×297mm) at 1:2 scale, your title block border should be 840×594mm. Text heights inside the title block follow the same rule (e.g., 3mm × 2 = 6mm).
  3. Set DIMSCALE to match the plot scale: At 1:2, set DIMSCALE = 2. This uniformly scales arrows, dimension text, and extension line offsets so they print at the right size.

When plotting, open the PLOT dialog, set the plot area to Window, frame around your title block border, and check Fit to Paper. Because the title block is already sized to the paper’s aspect ratio, the output comes out clean without any manual scale calculation.

💡 Why You Must Never Scale the Geometry

Drawing objects must always be kept at true 1:1 scale. If you scale geometry down to fit the paper, dimensions become meaningless when you revisit the file later. More critically, if the drawing data is ever fed directly into a CNC machine or laser cutter, scaled geometry will result in parts made at the wrong size — a potentially costly mistake. Scale belongs in the title block and annotation, not in the geometry.

3-3. When Does Paper Space Make Sense?

Model Space handles most 2D mechanical drafting needs, but there are situations where Paper Space has the edge:

  • When clients or contractors require it: If your deliverable specification explicitly calls for drawings to be set up in Layout tabs, you don’t have a choice.
  • Managing dozens of sheets in one file: In architectural or plant design, it’s common to have a single DWG with 30+ layout tabs and use the PUBLISH command to batch-export the whole set to a multi-page PDF.

Combining multiple scales (overall view + detail view) on one sheet is often cited as a Paper Space advantage, but it’s perfectly doable in Model Space too — just nest the detail at a different scale within the title block area. Mixing content across both spaces tends to create confusion rather than clarity, so the practical advice is: pick one and stick with it.

💡 Bottom Line: Use What Works for Your Workflow

Paper Space is a powerful feature, but for 2D mechanical drawings, Model Space gets the job done. Not using Paper Space doesn’t mean you’re doing it wrong. What matters is whether your line weights and scale are printing correctly — not which space you’re plotting from.


4. Plot Style Tables (CTB)

In AutoCAD, you’ll typically draw in color — red for visible lines, green for center lines, cyan for dimensions — but print in black and white with varying line weights. The component that makes this possible is the CTB (Color-dependent Plot Style Table).

4-1. How CTB Works

A CTB file is a lookup table that maps each of AutoCAD’s indexed colors (1–255) to a specific output color and line weight. It’s the backbone of any color-based layer workflow.

  • monochrome.ctb: AutoCAD’s built-in default. Prints everything in black, but ignores lineweight — all lines come out the same thickness.
  • Custom CTB: If you want different line weights per layer color, either create your own CTB from scratch or duplicate and modify monochrome.ctb.

4-2. Creating a Custom CTB

  1. Run PLOT → click “New…” in the Plot Style Table dropdown
  2. Choose “Start from scratch” to create a blank CTB
  3. Name it, then configure per-color settings in the Plot Style Table Editor:
    • Color: Set all colors to “Black” (for monochrome output)
    • Lineweight: Assign different thicknesses per color index
  4. Save, then select this CTB in your Page Setup

Here’s a typical color-to-lineweight mapping used in mechanical drafting:

AutoCAD Color Typical Use Plotted Lineweight (mm)
1 (Red) Visible / object lines 0.35
2 (Yellow) Hidden lines 0.18
3 (Green) Center lines 0.13
4 (Cyan) Dimension lines & extension lines 0.13
5 (Blue) Hatching 0.09
7 (White/Black) Text, title block 0.25
💡 True Color (RGB) Bypasses CTB

CTB files only map indexed colors (1–255). If a layer or object is assigned an RGB True Color, the CTB rules don’t apply — it will either print in the screen color or ignore lineweight settings entirely. For drawings where plot quality matters, stick with indexed colors.


5. Exporting Clean PDFs (DWG to PDF)

Delivering drawings as PDFs is standard practice. Whether you’re plotting from Model Space or a Layout, the basic setup is the same.

5-1. Plotting to PDF from Model Space

  1. In Model Space, run PLOT (or Ctrl+P)
  2. Printer/Plotter: Select “DWG To PDF.pc3” (AutoCAD’s built-in virtual PDF printer)
  3. Paper size: Choose A3, A4, or your target size
  4. Plot area: Set to “Window” and drag a selection box around the outside border of your title block
  5. Plot scale: Check “Fit to Paper,” or enter the exact scale ratio manually
  6. Plot style table: Select your custom CTB or monochrome.ctb
  7. Use “Preview” to verify line weights and layout before committing

5-2. Batch PDF Export — PUBLISH

When you have multiple DWG files or multiple layout tabs to output at once, the PUBLISH command lets you export everything as a single multi-page PDF in one go.

  • PUBLISH → Enter → Review the sheet list → Set output format to “PDF” → Click “Publish”
  • The result is a single PDF with one page per sheet — clean and easy to distribute.

5-3. Automated Batch Plotting for Model Space

If you work with multiple drawings laid out side by side in Model Space, manually selecting a Window for each one gets tedious fast. Several automated batch plotting tools exist to solve this.

① KrstPlot (LISP-based Auto Plotter)

A LISP-based tool developed in South Korea, widely known in the Korean CAD community as “KrstPlot” (or by its nickname “Pikachu”). It’s been a staple in mechanical design shops for years.

  • Automatically detects title block frames (or designated blocks) in Model Space and plots each one in sequence.
  • Supports filtering by block name or layer, and works with both PDF output and physical plotters.
  • It’s an older program — verify version compatibility before use, as it may not work with the latest AutoCAD releases.

Commands at a Glance

Command Shortcut Function
AUDIT Check and repair drawing database integrity
PURGE PU Remove unused blocks, layers, styles, etc.
-PURGE → R Remove registered application (Regapps) metadata
OVERKILL Delete duplicate and overlapping objects
SAVEAS Save as new file (also used when saving as DWT)
PLOT Ctrl+P Open the Plot dialog
PUBLISH Batch export multiple sheets to a single PDF

Wrapping Up

Drawing the geometry is only half the job — managing and plotting it correctly is just as important. Here’s the takeaway:

  • Build the AUDIT → PURGE → -PURGE (Regapps) sequence into your routine. Do it once and most file trouble simply goes away.
  • OVERKILL is powerful, but it can silently delete center lines in mechanical drawings. Lock your CEN layer first — no scripts needed.
  • A well-configured DWT template is a one-time investment that saves setup time on every project afterward.
  • Get your CTB plot styles dialed in at the start of a project, and consistent, clean PDF output becomes automatic.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top