Map 3D Toolset Tools for Regular AutoCAD Objects [Part One]: Clean a “Dirty” Drawing

Learning
Map 3D toolset tools

The Map 3D toolset has some great tools that help you work with regular AutoCAD objects. Best of all, these tools save you tons of time. In this three-part series, we’ll explore how to remove overlapping data, trim thousands of AutoCAD entities in one fell swoop, and transform or “rubber sheet” your AutoCAD objects.

First up—and keeping with the spring cleaning theme from Frank Mayfield’s recent TuesdayTip—let’s take a look at how to do some clean up with the Map3Dtoolset.

Cleaning a “Dirty” Drawing

Sometimes you get a drawing from a consultant or you download it from a website where they didn’t really use AutoCAD to generate the data. These drawings can sometimes be “dirty” with lines on top of lines, too many vertices, lines that don’t touch (that should), etc. This can make your file larger than it needs to be, and the Map 3D toolset drawing cleanup tools are here to help you clean up drawing data prior to using the data.

The Drawing Cleanup tools can be accessed in the Ribbon: Tools > Map Edit panel > Drawing Clean Up.

Drawing Cleanup Tools AutoCAD Map 3D toolset

The Drawing Cleanup tools that are available in the Map 3D toolset are listed in the table below with a brief description of each tool:

Drawing Cleanup Tools AutoCAD Map 3D toolset

Let’s look at an example of how useful these tools can be. I have downloaded a file that contains USGS contour data that I want to use to eventually create a surface to do some design. If we look at the size of our drawing, it is approximately 10 MB.

Drawing Cleanup Tools AutoCAD Map 3D toolset

Now, let’s look at our drawing data. First, if I select one of the contour lines, I notice that there appears to be way too many vertices that represent the contours.

Drawing Cleanup Tools AutoCAD Map 3D toolset

So, the first tool I will run from the drawing cleanup tools is Weed Polylines. This tool will “weed out” any unnecessary vertices that you really don’t need in the polylines based upon a distance and Angle factor. As a side note, there is also a Supplementing factors option that allows you to add vertices between vertices based upon a distance and a Bulge factor. Look to the Map 3D toolset help file; it really describes each setting in detail.

Weed Polylines AutoCAD

In the Cleanup Methods section of the dialog box, there are options that enable you to do whatever you like with the objects that will get “cleaned” up.

Clean up methods AutoCAD

Once you click Finish, look at the command line window to see if anything was done. In my case, 634 objects were modified.

command line window AutoCAD

The next tool I will use is Erase Short Objects. This tool will erase objects within polylines or by themselves, based upon a distance you type in.

Erase Short Objects AutoCAD

After looking at the command line, I notice that 2 objects were modified, and 32 objects are deleted.

command line AutoCAD

The last tool I want to use is Delete Duplicates.

Delete Duplicates AutoCAD

After running this tool, I notice that 1571 objects are deleted.

command line AutoCAD

Now, when I save the drawing and look at the size, it has almost lost double its size!!

Drawing cleanup tools AutoCAD Map 3D toolset

Drawing Cleanup tools = Cool!

Stay tuned for the second and third installments of the “Map 3D Toolset Tools for Regular AutoCAD Objects” series!

Try AutoCAD free for 30 days
The AutoCAD Blog is all about helping you get the most out of AutoCAD. It's also the best way for you to connect with the makers of AutoCAD. Subscribe to keep up with AutoCAD