Six efficient ways of cleaning AutoCAD drawings

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.

Write block:

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.

Audit and Recover:

These commands are generally used to remove errors from AutoCAD drawings, a drawing containing errors can unnecessarily become bloated up.

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.

Drawing Purge Add in:

This free add-in is available for download on Autodesk app store, download it here.

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.

Get access to all Courses, eBooks and Downloads on SourceCAD

See details

About the Author:

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.


  1. abdul October 15, 2018 at 11:21 am - Reply

    Dear sir,
    could you please aware us regarding “FATAL ERROR”,
    and how to fix it.

  2. Elwood November 16, 2017 at 3:04 am - Reply

    Thanks for the suggestions. I’m new at working with Civil 3D, and trying to work create and manage profiles and alignment gets pretty tough, until I get my way around some of the tricks. You know of all the times I go on line for help, the suggestion are of little help. I get more and more frustrated and leave with a bad taste in my mouth. In this case your suggestion of wblocking the drawing was great. Thanks again.

    • Jaiprakash Pandey December 3, 2017 at 5:09 pm - Reply

      Thanks Elwood, I am glad you found it helpful. But as I mentioned in the article WBLOCK should be used when everything else fails to clean your drawing properly.

  3. Saw Lin Aung November 8, 2017 at 10:41 am - Reply

    3-Dxf Out , Dxf In

  4. michaelviscetto July 13, 2016 at 10:49 pm - Reply

    I have always understood the DGN issue to be an AutoCAD Drawing File issue. The unpurgeable “DGN Linetypes” would ‘Bloat’ the drawings.
    However your comment about it spreading to almost all PC’s implies that it is more then that.

    Is there something I am missing? Should I be looking outside of the AutoCAD Drawing File for this?

    Thank you

    • Jaiprakash Pandey July 16, 2016 at 12:04 pm - Reply

      Hi Michael, We have noticed that if data from affected file is transferred to an unaffected file then the DGN issue creeps up in those unaffected files too. However It is completely true that this issue is file specific and as long as data is not transferred between affected and unaffected files there will be no issues whatsoever.

    • R.K. McSwain July 20, 2016 at 3:20 am - Reply

      Michael, the pre-2015 hotfix includes two different DLL files. One of them enables the DGNPURGE command, and the other STOPS the spreading of the bloat when you copy and paste drawing entities.

      Left unchecked, the bloat will spread quickly via copy+paste, or xattach, or Insert, etc.

      • Jaiprakash Pandey July 20, 2016 at 2:22 pm - Reply

        Thanks for making things clear R.K McSwain

  5. michaelviscetto July 12, 2016 at 12:59 am - Reply


    Thank you for taking the time to put this together. I use these tools all of the time to keep files clean and as error free as possible.

    It is surprising to me how many users are not aware of how important it is to keep drawing files clean and error free. And I am also surprised at how many users are unaware of the tools you have discussed above.

    The “Bloating” of drawing files was a huge issue until that DGN hotfix came out. I then created a LISP routine that would run that routine followed closely by a ‘_purge all’ line that included the removal of Regapps.

    Now that the Purge command takes care of most of that we are in a better place. 😉

    Our office is in the process of upgrading to Windows 10 with AutoCAD 2017 so I look forward to trying out the Smartpurger.

    Thanks again,
    Have a great day,


    • Jaiprakash Pandey July 12, 2016 at 1:39 am - Reply

      Welcome Michael, The DGN data was a big pain my office too, but I mostly relied on hotfix offered by Autodesk for fixing this issue. But the issue of DGN gradually spread to almost all PC’S and we were forced to develop batch script which would run every time PC boots up to clean the data.

Leave A Comment