DWG drawings often collect more than just the geometry you can see. After months of editing, copying objects between projects or importing drawings from consultants, a file may contain unused layers and blocks, duplicate lines or even internal drawing errors. GstarCAD provides three useful commands for dealing with these problems: AUDIT, PURGE and OVERKILL. They are often mentioned together, but they solve very different problems.
What is the difference?
The easiest way to remember the three commands is to think about what they clean.
| Command | What it checks | Main purpose |
|---|---|---|
AUDIT | DWG database and drawing integrity | Find and repair drawing errors |
OVERKILL | Visible drawing geometry | Remove duplicate or overlapping objects |
PURGE | Unused drawing definitions and data | Remove items that are no longer referenced |
In other words, AUDIT repairs the drawing, OVERKILL cleans the geometry and PURGE removes unused content.
What does AUDIT do?
AUDIT checks the internal integrity of the current drawing. It looks for errors in the DWG database and gives GstarCAD the option to repair errors it can detect automatically.
This is particularly useful when a drawing has passed between different users or applications, after an unexpected software or system problem, or when a DWG behaves strangely even though nothing obviously looks wrong.
Command: AUDIT ↵
Fix any errors detected? [Yes/No]: Y ↵
AUDIT is therefore not primarily a file-size reduction tool. Its job is drawing integrity. If a file cannot be opened normally, the related RECOVER command is more appropriate because it attempts to open and recover a damaged drawing.
What does OVERKILL do?
OVERKILL works on the objects inside the drawing. It can remove duplicate or overlapping lines, arcs and polylines and can also combine compatible overlapping or contiguous geometry.
This is extremely useful with drawings created from imported data, converted PDFs, copied details or geometry that has been edited by many people. Two lines may appear as one on screen while actually being perfectly superimposed.
- Type
OVERKILLand press Enter. - Select the area or objects you want to clean.
- Press Enter to finish the selection.
- Review the comparison settings in the Overkill dialog.
- Click OK to process the selected objects.
Watch out
Do not automatically use aggressive OVERKILL settings on an entire drawing without checking them. Options that ignore properties such as layers, colour or linetype can cause objects with different purposes to be treated as duplicates.
What does PURGE do?
PURGE deals with content that is stored in the DWG but is no longer being used. Typical examples include unused block definitions, layers, linetypes, text styles and dimension styles.
These items may remain after objects have been deleted or copied between drawings. They are not necessarily visible in model space, but they still form part of the drawing database.
- Type
PURGEorPUand press Enter. - Review the items that can be purged.
- Select the categories you want to clean.
- Use Purge All when appropriate.
- Repeat the process if additional nested items become available for removal.
Tip
Do not treat every unused item as unwanted. A block, layer or linetype may have been prepared intentionally for work that will be added later.
Practical example: cleaning a consultant’s floor plan
Imagine receiving an architectural floor plan that has been edited repeatedly and contains imported details from several other drawings. Zooming into a wall reveals duplicate linework, the layer list contains dozens of names that are no longer used and GstarCAD reports inconsistencies in the file.
Start with AUDIT to check the integrity of the DWG and repair detected errors. Next, run OVERKILL on the relevant floor-plan geometry to remove duplicate wall lines and overlapping segments. Finally, use PURGE to remove block definitions, layers and styles that are no longer referenced.
The result is not simply a visually cleaner drawing. Selection becomes more predictable, duplicate geometry is less likely to interfere with trimming or editing, and the drawing database contains less obsolete information.
Which command should you use first?
For a drawing of unknown quality, a practical workflow is AUDIT → OVERKILL → PURGE. Start by checking that the DWG is structurally sound, clean the geometry that actually needs attention, then remove definitions that are no longer required.
You can run PURGE again after major editing because removing geometry may leave additional layers, blocks or other definitions unused.
The important point is that these commands are not alternatives to one another. AUDIT fixes drawing errors, OVERKILL removes redundant geometry and PURGE removes unused drawing data. Used together, they provide a simple maintenance routine for DWG files received from colleagues, clients and external consultants.