AutoCAD drawings often contain duplicate or overlapping geometry that unnecessarily bloats them and makes them more challenging to edit. There are numerous reasons overlapping geometry might be created, such as copying or drawing new geometry on top of existing geometry. A less obvious example occurred in one of my previous posts where I created geometry from text. In this example, closed polylines defining various parts of the characters had overlapping segments.
When I exploded those closed polylines for editing, I was left with duplicate objects where the polylines had overlapped. It's not be visually obvious so you may not realize it until you begin editing the geometry. For example, if you select one of the segments to erase it or change it’s layer, it may seem like AutoCAD is behaving poorly by ignoring your request. But, in reality, there’s simply a duplicate object in the same location.
To quickly remove duplicate objects, even without knowing if or where they exist, you can use the OVERKILL command. Originally OVERKILL was an Express tool. Because of its popularity it was integrated into AutoCAD as core functionality starting with AutoCAD 2012. You can type the command (OVERKILL) or access it from the Delete Duplicate Objects tool by expanding the Modify panel of the Home ribbon tab. It’s the broom icon because it helps you clean up your drawing!
Simply launch overkill and select the geometry you want to clean up. In my text example, after exploding all the geometry (closed polylines), I selected all the geometry without worrying about which ones may or may not have duplicates.
After selecting objects, the Delete Duplicate Objects dialog box enables you to specify details regarding what is considered duplicate. For example, you can specify a tolerance factor or object properties to ignore. Additional options enable you to combine co-linear objects that partially overlap or are aligned end to end. Most often, I leave the default settings and get exactly the results I expect.
When the operation completes, the Command window indicates how many objects were deleted.
The drawing looks just as it did before but you’ve removed unnecessary objects, reducing file size and potential frustration!
Recent Comments