Aside from being rather absent from the blogosphere, I have found myself using AutoCAD for Mac more and more lately. In fact, my company and I are preparing to host an AutoCAD for Mac training class in the next month. While the gap between the Mac and Windows releases of AutoCAD 2011 left me wishing for more, the 2012, and especially the new 2013 release dramatically narrow the gap between the two platforms.

No matter how small the gap between platforms, a missing tool is a missing tool. Since AutoCAD for Mac was a complete rewrite, and the Express Tools team has long been dissolved, it only makes sense Autodesk chose not to port Express Tools to the Mac platform. Regardless of the incredibly logical reasons behind the decision, it still doesn’t supersede the frustration of a missing tool.

I came across that very situation as I opened a drawing that was sent to me, and had linework drawn at many elevations. Express Tool users know the perfect solution to this problem is the FLATTEN command. Trouble is, AutoCAD for Mac doesn’t have the FLATTEN command since its part of the Express Tools bundle.

My solution?

Create a Custom Macro

Booting Parallels to open the Windows version would have been too easy. Instead, my solution was to create a custom macro. I was able to very easily do this by:

Creating a custom AutoCAD for Mac Macto

  1. Inside AutoCAD for Mac, open Tools > Customize > Interface (CUI).
  2. From the Customize dialog, click the [+] button to create a new command.
  3. Within the Properties section of the Customize dialog; give your tool a name (i.e. Flatten), and an optional description.
  4. Copy the following into the Macro portion of the Customize dialog:
  5. Choose an icon for your new macro. Here’s the FLATTEN tool icon from the Windows version of AutoCAD.

What the above macro does is moves the objects you select above the maximum range for AutoCAD which results in those objects being placed at the maximum height of 1e99. Now that all of the selected objects share a common elevation, we can move them down –1e99, and the final elevation will be 0. Put another way, the functionality of the FLATTEN command has been emulated through a Macro.

Adding to a Tool Set

Adding access to your newly created Macro is just a matter of adding it to a new or existing Tool Set. To do this:

Adding custom macro into an AutoCAD for Mac Tool Set

  1. Expand an existing Tool Set contained within the right-hand panel, or click the [+] button to create a new one.
  2. Locate your newly created macro within the left-hand panel.
  3. Drag-and-drop your macro into your Tool Set.
  4. Click OK to close the Customize dialog, and begin using your new Flatten macro.
%d bloggers like this: