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.
| Problem | Best tool | What it addresses |
|---|---|---|
| Unused blocks, layers and styles | PURGE | Unused named definitions |
| Drawing database errors | AUDIT | Integrity problems inside the DWG |
| Duplicate and overlapping objects | OVERKILL | Redundant visible geometry |
| Old external references | XREF | Unused or unnecessary linked drawings |
| Persistent drawing baggage | WBLOCK | Creates 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.
- Type
AUDITand press Enter. - When asked whether detected errors should be corrected, enter
Y. - Allow GstarCAD to complete the drawing check.
- Review the command-line result.
- 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.
- Run
OVERKILL. - Select a suitable area or set of objects.
- Review the comparison and optimisation options.
- Use an appropriate tolerance.
- Confirm the operation.
- 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.
- Create a backup using
SAVEAS. - Run
AUDITand allow supported errors to be corrected. - Run
PURGE, including nested unused items where appropriate. - Repeat
PURGEif additional definitions become removable. - Use
OVERKILLcarefully on imported 2D geometry containing overlapping lines. - Open
XREFand detach references that are genuinely no longer required. - Save, close and reopen the cleaned drawing.
- 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.