Keeping your drawings clean and tidy doesn't just make them more visually appealing, it can also keep the file size smaller and help you avoid mistakes.
AutoCAD has cleanup tools such as PURGE and OVERKILL that remove unused or duplicate items from a drawing and help keep your drawing file clean from clutter.
Purge removes unused items or named objects, such as block definitions and layers, from the drawing.
Purge is the term used to describe removing a definition of a non-graphical object rather than erasing a graphical object. For example, you might erase all the graphical objects in your drawing that use a dashed linetype, but that still leaves the linetype definition in the drawing. Similarly, erasing all block references of a fixture still leaves the block definition for that fixture block in the drawing.
Let's try purging unused items. You may already have a drawing with purgeable items, but if not, you can easily create some unused layers.
Since these layers don't have any objects on them, they are unused and can be purged.
To purge unused items:
The Purge dialog box opens. There are two viewable lists:
You can also skip the process of selecting the items to purge by selecting Purge All, which purges all unused items.
If you have Confirm Each Item to be Purged selected, you are prompted to confirm each item that's being purged. Clear this option to skip the confirmation step.
Purge Nested Items
Removes unused named objects from the drawing even if they are contained within or referenced by other unused named objects.
Purge Unnamed Objects
Maybe there's an item you would like to purge, but it's not showing up in the Named Items Not Used list. Use the Find Non-Purgeable Items list to view named items in use in the drawing.
When you select an item, you'll see a preview and a list of possible reasons why the object can't be purged.
In Details, you can see the item size and the number of times it appears in the drawing. To select the items in the drawing, click the Select Objects icon next to the item you want to select in the drawing.
Clicking Select Objects closes the Purge dialog box and selects the objects in the drawing.
When drafting in AutoCAD, it's quite easy to inadvertently create overlapping, duplicate objects in your drawing. These duplicate objects aren't just visually unappealing. They can increase file size, cause trouble when trying to select or modify objects, or might cause errors when exporting a drawing. Overlapping lines can even cause manufacturing machines to create improper cuts.
OVERKILL removes duplicate or overlapping lines, arcs, and polylines, and also combines those that are partially overlapping or contiguous.
The following changes can be made to geometric objects in a drawing:
Let's try it out. Use one of your own drawings, or use the sample drawing, Floor Plan Sample.DWG, which is shown in the following sections.
The Delete Duplicate Objects dialog box opens. For now, let's use the default options.
This drawing looks the same as it did before. Even though none of the untidiness was visible, 30 duplicate objects and 2,387 overlapping objects and line segments were deleted.
Let's try it again, but this time we'll use some of the options in the Delete Duplicate Objects dialog box.
By default, OVERKILL doesn't act on objects that have differentiating properties. For example, if objects are identical but are on a different layer or have a different lineweight, those objects will not be treated as duplicate. However, you can change the settings to ignore certain properties.
In this example, there are three identical line segments, except they are each assigned a different color. Selecting the Color option will remove all duplicate objects.
The following object properties can be ignored during comparison:
In this example, a line is overlapping a polyline. If Optimize Segments within Polylines is selected, using OVERKILL on these objects deletes the line object.
With this option selected, line segments that are aligned end to end will be joined to create a single line.