Tips & Tricks

PURGE Is Not Enough: How to Reduce a Heavy DWG File

A large or slow DWG may contain much more than unused layers. Use AUDIT, PURGE, OVERKILL and reference cleanup for a deeper drawing clean-up.

Level
Intermediate
Best for
Large, slow, imported and frequently edited DWG files

Running PURGE is a good first step when a DWG becomes unusually large, but it does not clean everything that can make a drawing heavy or difficult to work with. A project may also contain duplicate geometry, database errors, obsolete external references, imported content and deeply nested unused definitions. A better approach is to treat DWG clean-up as a sequence of checks rather than a single command. The practical workflow is: back up, audit, purge, remove redundant geometry, inspect references, then save and compare the result.

Why is PURGE alone sometimes not enough?

PURGE removes unused named definitions from the current drawing. These can include unused blocks, layers, linetypes, text styles, dimension styles and other definitions that remain stored in the DWG even though the drawing no longer needs them.

That is useful, but PURGE does not solve every type of drawing clutter.

ProblemBest toolWhat it addresses
Unused blocks, layers and stylesPURGEUnused named definitions
Drawing database errorsAUDITIntegrity problems inside the DWG
Duplicate and overlapping objectsOVERKILLRedundant visible geometry
Old external referencesXREFUnused or unnecessary linked drawings
Persistent drawing baggageWBLOCKCreates a new DWG from selected useful geometry

This is why a drawing can still feel heavy after a successful purge.

First step: make a safe copy

Before performing an aggressive clean-up, save a copy of the original DWG. This is especially important for drawings received from consultants, old project archives or files containing specialised objects.

Use SAVEAS and create a working copy such as:

Project-Level-02.dwg
Project-Level-02-CLEANUP.dwg

You can then compare both the file size and drawing behaviour after the clean-up.

Run AUDIT before removing data

AUDIT checks the integrity of the drawing database and can attempt to correct supported errors.

A file can contain database problems even when it opens normally. These problems may have accumulated through years of editing, copying between drawings or exchanging files between different CAD systems.

  1. Type AUDIT and press Enter.
  2. When asked whether detected errors should be corrected, enter Y.
  3. Allow GstarCAD to complete the drawing check.
  4. Review the command-line result.
  5. Save the drawing if repairs were made.

AUDIT and PURGE solve different problems

AUDIT checks drawing integrity. PURGE removes unused definitions. Running one does not replace the other.

Now run PURGE properly

Run PURGE and review what the drawing actually contains instead of immediately closing the dialog after one pass.

Typical purgeable items can include:

  • unused block definitions,
  • unused layers,
  • unused linetypes,
  • unused text and dimension styles,
  • unused multileader and table styles,
  • registered application data where available,
  • zero-length geometry where available.

If appropriate, enable the option to purge nested items. An unused block may itself contain references to layers or linetypes that cannot become purgeable until the parent block is removed.

For this reason, it can be useful to run PURGE again after the first clean-up. Removing one unused definition can make additional nested definitions eligible for removal.

Remove duplicate geometry with OVERKILL

OVERKILL solves a completely different problem. It identifies duplicate or overlapping geometry and can optimise compatible objects.

This is particularly valuable in:

  • imported consultant drawings,
  • PDF-to-DWG conversions,
  • drawings assembled from many copied files,
  • CNC geometry,
  • old drawings that have been edited repeatedly.
  1. Run OVERKILL.
  2. Select a suitable area or set of objects.
  3. Review the comparison and optimisation options.
  4. Use an appropriate tolerance.
  5. Confirm the operation.
  6. Inspect the cleaned geometry before continuing.

Do not run aggressive OVERKILL settings blindly

Two objects that appear identical may intentionally have different layers, colours or other properties. Clean imported or suspicious areas first and verify the result before processing an entire production drawing.

If the heavy drawing originated from a PDF conversion, our PDF to Editable DWG workflow explains how to check scale and clean converted geometry before it becomes part of the main project.

Check external references as well

A drawing that feels slow is not always large because of geometry stored directly inside the DWG. External references can also affect opening, loading and general project management.

Run XREF and inspect references that are still attached to the drawing.

Pay attention to:

  • references that are no longer required,
  • missing files,
  • old consultant backgrounds,
  • unnecessary nested references,
  • references that should only be temporarily unloaded.

Unload and Detach are not the same thing. Unloading temporarily removes the referenced drawing from display while retaining its definition and path so it can be reloaded. Detaching removes the reference relationship from the current drawing.

If you know an Xref is no longer part of the project, detach it rather than leaving obsolete references attached indefinitely.

Practical example: clean a consultant DWG

Suppose you receive a building drawing that has passed through several consultants. The file is noticeably larger than expected and takes a long time to open and regenerate.

The drawing contains old block definitions, unused layers, duplicated wall lines and several external references that are no longer needed.

  1. Create a backup using SAVEAS.
  2. Run AUDIT and allow supported errors to be corrected.
  3. Run PURGE, including nested unused items where appropriate.
  4. Repeat PURGE if additional definitions become removable.
  5. Use OVERKILL carefully on imported 2D geometry containing overlapping lines.
  6. Open XREF and detach references that are genuinely no longer required.
  7. Save, close and reopen the cleaned drawing.
  8. Compare the resulting file size and drawing performance with the backup.

This sequence attacks several different causes of drawing bloat instead of expecting one command to solve all of them.

What if the DWG is still unusually large?

If a drawing remains unexpectedly large after normal clean-up, WBLOCK can be useful as a more advanced option.

WBLOCK can write selected useful geometry to a new DWG file. Because the result is a new drawing based on the objects you deliberately export, it can help leave unwanted drawing baggage behind.

However, this is not a routine replacement for PURGE. A new WBLOCK file may not contain all layouts, page setups, named definitions or project-specific information that existed in the original drawing.

Treat WBLOCK as a controlled rebuild

Before replacing an original project DWG with a WBLOCK-generated file, verify layers, blocks, layouts, annotation, coordinate position, references and plotting settings. Use it when you understand exactly what must be transferred into the clean file.

What if you need to clean many DWG files?

For a project containing dozens of drawings, opening every DWG and running PURGE manually becomes inefficient. GstarCAD provides BATPURGE for batch clean-up of multiple files.

You can add individual drawings or an entire folder, select the files to process and run the clean-up without opening every drawing individually. In GstarCAD 2026, batch clean-up can also include additional data such as registered applications, zero-length geometry, empty text objects and orphaned data.

This makes BATPURGE particularly useful before archiving a large project or maintaining a shared drawing library.

What is the best heavy-DWG clean-up order?

Do not judge a drawing only by whether PURGE reports that there is nothing left to remove. A clean DWG requires several different checks.

A reliable order is:

BACKUP
↓
AUDIT
↓
PURGE
↓
OVERKILL where appropriate
↓
CHECK XREFS
↓
PURGE again
↓
SAVE, REOPEN AND TEST

If the file remains unusually large, investigate what is actually stored in it before using more aggressive methods such as WBLOCK.

The productivity rule is simple: PURGE removes unused definitions, but a heavy DWG may also contain errors, duplicate geometry, obsolete references and unnecessary project data. Clean each type of problem with the correct tool instead of expecting one button to fix the entire drawing.

All tips Updated 2 November 2026
Continue learning
View all tips

Ready to switch to GstarCAD?

Get personalized advice on licensing, migration, and deployment for your business.

Contact us Buy now

No obligation — reply within 24h

Your Cart

Subtotal

Price does not include local taxes or duties.

Proceed to Checkout

Cookie preferences

Choose which cookies you want to allow. Essential and payment cookies cannot be disabled as they are required for the site to function.

Essential

Required

Core functionality including authentication, shopping cart, and language preferences.

Payment

Required

Required for processing payments securely through Stripe and PayPal.

Analytics

Help us understand how visitors interact with our site to improve the experience.

Marketing

Used to deliver relevant advertisements and measure campaign performance.

Functional

Order attribution and traffic source tracking to help us understand how customers find our store.