If you are thinking that your drawing does not need optimization then think again, maybe you are missing great benefits of having a clean drawing.
An optimized drawing with a minimum amount of unnecessary data tends to perform faster, the drawing load time is significantly better and chances of drawing corruption also reduce to a great extent.
In this article, I have compiled a list of six efficient ways of cleaning and optimizing your drawing. Let’s start with the most common Purge and Overkill commands.
PURGE and Overkill
These are probably the first few commands which are used by almost every draftsman to clean their drawing. Purging a drawing cleans all redundant or unused entities like layers, blocks, line types etc from your drawing.
To use purge command type PURGE on the command line and hit enter, a new purge window will pop up. Click on Purge All button from this window, you may need to click on Purge all button several times to remove all redundant objects from the drawing.
When the drawing becomes completely clean the purge all button grays out, click on close button to exit purge window.
Overkill is another such cleanup tool, by using overkill all the overlapping or duplicate drawing entities can be removed and merged together.
To use overkill type OVERKILL on the command line and press enter, the command line will now prompt you to select objects from drawing area. Type ALL and press enter, this will select complete drawing in our selection set for applying overkill. Press enter again and click on OK in the delete duplicate objects window.
This may not look like a straightforward drawing cleanup tool but it is very efficient in cleaning all useless clutter from your drawing.
This method should only be used when you have no other option of cleaning your drawing as this method causes loss of data from your drawing including layer assignments.
This command transfers all drawing elements to another clean and blank template leaving all clutter behind. To use this feature open the affected drawing then type WBLOCK and press enter.
This will open write block window, select Objects radio button from source panel and then click on pick points button and specify a base point in drawing. Then move to objects panel and click on select objects button and make a selection to include all drawing entities from your drawing area.
Although you could have also used Entire drawing radio button from source panel to include all drawing entities in your selection set, but I prefer making the manual selection because it helps in avoiding selection of invisible drawing entities which are generally present in your drawing outside your work area.
From the Destination panel specify the path where you want to save the exported drawing and click OK. The cleaned drawing will now be saved on the specified path.
To clean this kind of drawings type AUDIT on the command line and press enter. Command line will now prompt you to specify whether you want to fix detected errors or not, type Y and press enter to find and fix all detected errors.
Recover command can be used at places where the drawing is corrupt to such an extent that it can’t be opened. For these situations open a blank drawing type RECOVER and press enter then browse affected drawing from select file window and click on open.
AutoCAD will attempt to recover your drawing removing all errors from it and then it will open it in a new session.
Sometimes AutoCAD drawings file size becomes too bloated up with seemingly no data in it.
This error also leads to other issues like lagging cursor when selecting annotations like text and dimensions, copy paste not working in AutoCAD and file taking too long to open.
This issue also spreads to unaffected files if data from the affected file is copied to an unaffected file. This issue starts in a drawing due to improper data import from DGN files resulting in huge drawing database.
Autodesk offered a hotfix of this issue for versions older than 2014 but with AutoCAD 2015 and later version they implemented DGN purge feature within the standard PURGE command.
To remove this kind of orphaned data from AutoCAD 2015 and later versions type PURGE and press enter then select Automatically purge orphaned data radio button from purge window as shown in the image above.
Cleaning unreferenced Regapps
With the excess of unreferenced Registered application ID’s the drawing starts to show larger than normal size and performance issue creeps in.
To clean unreferenced Regapp Id’s type -PURGE on the command line (don’t forget to add a dash before PURGE) and press enter. Then select Regapp from the command line and press enter when command line prompts you to specify the name of Regapp. Keep pressing enter till all unreferenced Regapps Id’s are purged.
Although you can use -PURGE command for purging unreferenced Regapp Id’s in a single drawing but for multiple drawings it simply becomes a time taking task and for those cases you can use Regapp ID cleanup utility tool to batch process unreferenced Regapp Id’s cleanup.
You can also use -PURGE command to clean other entities like zero-length geometry and empty text objects that otherwise cannot be deleted from standard PURGE command.
I tried this app and it worked perfectly, this tool can take the pain of applying many commands to clean your drawing out of your workflow. Using this tool you can purge almost all redundant and unused entity in your drawing including unused DGN data.
If a drawing contains an X-ref then it will scan for DGN data in referenced files as well and prompt you to select whether you want to clean DGN data from Xref also.
To use this tool download it from the link above and install it. Then restart your AutoCAD software and go to add-ins tab and select Purge from Drawing Purge panel.
The tool can also perform bulk cleaning task for multiple drawings. To perform batch cleaning operation click on Batch Purge icon on Drawing purge panel of add-ins tab. A batch drawing purge & settings window will appear, click on Select drawings or Select Folder icon in the top left corner of this window and select a folder containing all your drawings or select multiple drawings manually.
When all the drawings are listed in the window click on Purge button on the lower right corner as shown in the image below.
It will perform purge operation on all selected drawing’s and it will show file size before and after performing purge along with a list of items purged for each drawing.
This one is another great app that you can use to clean your drawing. I tried it on windows 10 PC with AutoCAD 2017 and it worked smoothly.
For using this tool you need to download it from JTB world website or Autodesk app store, it’s trial version can batch process a maximum of 10 files but you can remove this limitation by purchasing its license.
To use SmartPurger download and install it, then restart your AutoCAD software. Go to add-ins tab and click on the Smartpurger icon, JTB WORLD SmartPurger window will pop up. Click on add drawings icon on the top left of this window and select all your drawings which you want to include in the batch for cleaning.
You can also select a folder using Add Folders Only button on the top left side of the window, selecting a folder will include all files of the folder in the queue.
When you have all your drawings in the queue click Run and wait for the app to do the rest for you.
If you have more drawing cleanup tools in your inventory, don’t forget to share with us using comments below.
Start Free Account
Start learning AutoCAD and Fusion 360 with video courses, eBooks and Q&A community
I am a mechanical engineer and I have worked with Design, Manufacturing and Training industries but now SourceCAD is my full-time work and I use it to train students all over the world. I also train corporate clients and help them develop the skill set of their workforce.
I am Autodesk AutoCAD Certified Professional and an Autodesk expert elite member. I am a regular contributor of AUGI World magazine and apart from SourceCAD I also develop AutoCAD video courses for Pluralsight and other E-Learning businesses.