Monday, July 16, 2018

An Oldy But Goody - MAPCLEAN


A few days ago I was working with someone to prepare some CAD drawings for GIS Conversion, and we had to do some mass changes on the AutoCAD linework. They were unaware of some core commands they had in Civil 3D to make those tasks easier. Thinking about it, I recognize that a large percentage of users probably have no idea some of these tools exist, but they go back to the very beginnings of AutoCAD Map 3D – actually, to the ADE addon package that eventually became Map 3D. These are the Map Clean Up tools (or as they are labelled now, Drawing Clean Up). These tools are very powerful, and to my mind justify upgrading to Map 3D from AutoCAD by themselves. They are primarily designed to clean up CAD data to build geospatial data sets, but can be used to modify AutoCAD objects for any reason.
The Drawing Clean Up tools are found on the Planning and Analysis Workspace on the Tools ribbon. Look for the Map Edit panel, and the large icon is the Drawing Cleanup tools. 


For those who don’t want to change workspaces, you can also get to the command by typing MAPCLEAN at the command line. When you start the command, it opens up a “Select Objects” dialog box. That box allows you to select drawing objects you want to modify. You can select all or pick and even select specific layers to pull from. On the layer selection, you can use wild cards, and select for example, c-road* to select any layer name that begins with c-road (c-roads-cntr, c-road-edge, etc).



The bottom half allows you to select items that can be used as reference points that aren’t altered or moved, such as monument points you want to maintain during the cleanup process.
After finishing the object selection and hitting next, you get to the Cleanup Actions dialog. This is the meat and potatoes of the tool set.


You can select one or more of the cleanup actions you want to use.
Delete Duplicates – Exactly what it says – it removes duplicate objects. It will also remove objects that are close to duplicate depending on the parameters – essentially you can specify a tolerance.
Erase Short Objects – Deletes any linear objects shorter than the tolerance.
Break Crossing Objects – breaks lines whenever they cross (see below):


Notice the crossing lines circled on the left, and after the command, grips showing the ends of the lines on the right image.
Extend Undershoots – When a line is just short (based on the tolerance parameter) of reaching the end another object, the tool will extend the line to that point.
Apparent Intersection – When lines look like they should intersect but are too short, this will extend them to the intersection. The parameter is the radius distance between the two.
Snap Clustered Nodes – When there are multiple end points close to each other but not quite touching 9based on the tolerance parameter), the tool will move them to snap together. This is an example where anchors can help – the ends of a road centerline, for example, can be snapped to an anchoring monument.
Dissolve Pseudo Nodes – Removes nodes (points – or points in a polyline) within a line – such as polyline vertices that are in a straight line.
Erase Dangling Objects – Deletes lines that have an endpoint not shared by another line. Tyically used to remove lines that are not part of polygons in a data set.
Simplify Objects – Removes nodes that are within the tolerance on 2D lines. It is also called generalizing.
Zero Length Objects – Removes objects that have no length, such as a line with the same start and end point. This is often why Zooming to extents can cause your drawing to open a huge area where there’s no apparent linework.
Weed Polylines – Simplify objects for 3D polylines.
One of the best parts of this tool set is the ability to make these changes en masse in the drawing. Thousands of updates can take place at once. At the bottom of this dialog, you can apply the edits automatically, or by manually reviewing and approving each change.
You can mix and match the edits to save time, but keep in mind some of these actions actually oppose each other, so combining them can defeat the purpose or do nothing at all. I remember when it first came out thinking it would help to do all the actions at once. Instead it just made a mess of the drawing.
The next dialog – “Cleanup Methods” gives you the option to determine whether you want to change the original linework or create new cleaned up objects (and the layer to store them), and how the objects will be modified.


The last dialog box of the command will only show if you choose interactive edits. Then it shows how to label the various types of edits with colors and symbols. This is very handy when you a looking at the street network of a large town, for example.


These tools have been a real lifesaver for me at times, and I hope you find them useful. One of the best ways to get familiar with it is to create a drawing with various lines, symbols, crossings, etc and trying the tools one at a time. Then when something comes up in production, you know the tool is there and how to use it.
I also put this in a video on the Autodesk Knowledge Network.

No comments: