01 / 20

Drawing Cleanup
Workflows

Learn how to use standards and cleanup workflows in AutoCAD to catch errors, enforce consistency, and deliver professional-quality drawings.

AutoCAD

What Is Drawing Cleanup?

Drawing cleanup is the systematic process of reviewing and correcting a CAD file so that every element follows the project's drafting standards. It targets geometry errors, layer misassignments, redundant objects, and naming inconsistencies that accumulate during the design process.

Why Cleanup Matters

Collaboration
Consistent layers and naming let every team member find objects instantly without guessing.
Accuracy
Removing duplicate geometry and zero-length objects prevents measurement and plotting errors.
File Size
Purging unused blocks, styles, and layers shrinks files, making them faster to open and share.

Key Terms to Know

1
Layer Standard: A predefined naming and color scheme (e.g., AIA or company-specific) that every object must follow.
2
PURGE: A command that removes all unused named objects: blocks, layers, linetypes, text styles, and dimension styles.
3
AUDIT: A command that scans the drawing database for internal errors and optionally repairs them.
4
OVERKILL: A command that deletes duplicate or overlapping geometry such as stacked lines, arcs, and polylines.
5
Standards Check (CHECKSTANDARDS): Compares your drawing's layers, styles, and linetypes against a DWS standards file and flags violations.

The Cleanup Pipeline

AUDIT OVERKILL PURGE CHECKSTANDARDS Step 1: Fix internal database errors Step 2: Remove duplicate/overlapping geometry Step 3: Delete unused layers, blocks, styles Step 4: Validate against DWS standards file

The Golden Rule of Cleanup

This single principle drives every cleanup command. If an object is on the wrong layer, the layer standard is violated. If its color or linetype is set to an explicit override instead of ByLayer, the drawing becomes unpredictable when layers are frozen or printed. If a line exists twice in the same location, dimensions and hatches can misfire.

Correct Layer
Walls on A-WALL, doors on A-DOOR, etc.
ByLayer
Color, linetype, and lineweight all inherit from the layer.
No Duplicates
Every geometric entity exists exactly once.

Standards Files: DWS

Company.dws Standards File Floor-Plan.dwg Elevation.dwg Detail.dwg ✓ Pass ✕ 3 violations ✓ Pass

A .dws file is a regular DWG saved with a different extension. It stores the "truth" for layer names, text styles, dimension styles, and linetypes. When you run CHECKSTANDARDS, AutoCAD compares your drawing against this file and lists every mismatch so you can fix or ignore each one.

Manual vs Automated Cleanup

Manual Review Automated Commands
Speed Slow: requires visual inspection Fast: batch processing
Scope Catches design intent errors Catches data/structural errors
Examples Wrong layer assignments, missing annotations AUDIT, PURGE, OVERKILL
When to Use Final quality check before delivery Every save cycle or milestone

How to Apply: Step-by-Step

1
Open the drawing and immediately run AUDIT with "Fix errors" set to Yes.
2
Select all (Ctrl+A) and run OVERKILL to remove duplicate geometry. Set tolerance to \( 0.001 \).
3
PURGE all unused items: run the command, click "Purge All," then repeat until nothing remains.
4
Attach your DWS file and run CHECKSTANDARDS. Fix flagged violations one by one.
5
Manual review: freeze each layer in turn to inspect objects. Check that all properties read "ByLayer."
6
Save a backup before cleanup and compare file sizes: a good cleanup often reduces size by 10-40%.

Example 1: Running PURGE

Before PURGE Layers A-WALL in use A-DOOR in use TEMP-SKETCH unused OLD-GRID unused Blocks WINDOW-TYPE-A in use CHAIR-V2-OLD unused File Size: 4.2 MB After PURGE Layers A-WALL ✓ A-DOOR ✓ Blocks WINDOW-TYPE-A ✓ File Size: 2.8 MB 33% smaller

Example 2: Using OVERKILL

Before 2 overlapping wall lines 3 overlapping wall lines Total lines: 5 After OVERKILL 1 clean wall line 1 clean wall line Total lines: 2

Example 3: CHECKSTANDARDS

Standards Violation Found ✕ Layer: "walls" Non-standard name. Replace with "A-WALL" from Company.dws ✕ Text Style: "MyArial" Non-standard style. Replace with "Standard" from Company.dws ✕ Dim Style: "custom_dims" Non-standard style. Replace with "AEC-DIM" from Company.dws Fix Ignore

Understanding ByLayer Properties

ByLayer (Correct) Layer: A-WALL Color: ByLayer (Red) Linetype: ByLayer (Continuous) Freezing A-WALL hides line ✓ Printing respects layer color ✓ Predictable behavior Override (Incorrect) Layer: A-WALL Color: Blue (override!) Linetype: Dashed (override!) Freezing A-WALL hides line ✓ But prints blue, not red ✕ Unpredictable output

Common Mistakes

✕ Skipping AUDIT
Running PURGE or OVERKILL on a corrupted database can cause crashes or data loss. Always audit first.
✕ Single PURGE
Running PURGE only once misses nested unused items. Always repeat until "0 items to purge" appears.
✕ No Backup
OVERKILL is destructive and cannot be fully undone in complex files. Always save a backup before cleanup.
✕ Drawing on Layer 0
Layer 0 is reserved for block definitions. Placing project geometry on it defeats layer management entirely.
✕ Ignoring DWS
Without a standards file, CHECKSTANDARDS has nothing to compare against. Set up a DWS file at project start.

Cleanup Commands Summary

Command Purpose When to Run Risk Level
AUDIT Fix database errors First, always Low
OVERKILL Remove duplicates After AUDIT Medium
PURGE Remove unused items After OVERKILL Low
CHECKSTANDARDS Validate against DWS After PURGE Low
SETBYLAYER Reset property overrides During manual review Medium

Question 1 of 5

Which cleanup command should you always run first before any other cleanup step?

Question 2 of 5

What does the OVERKILL command remove from a drawing?

Question 3 of 5

A colleague's drawing has objects with Color set to "Blue" instead of "ByLayer." Which command batch-resets these property overrides?

Question 4 of 5

Why should you run PURGE multiple times rather than just once?

Question 5 of 5

What is the purpose of a .dws (standards) file in AutoCAD?