Recreating the FLATTEN Command in AutoCAD for Mac

|

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:
    ^C^C_SELECT;_MOVE;0,0,0;0,0,1e99;_MOVE;P;;0,0,0;0,0,–1e99;
  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.

16 thoughts on “Recreating the FLATTEN Command in AutoCAD for Mac

  1. AutoCad for Mac 2016
    Daniela’s edit on January 14, 2015 worked great, but only when I added a button and used that. I cannot use the “Flatten” Command. I assume that is part of using Macros? Anyway, I’m glad i can flatten even if I have to use the button.

    • THANKS! Donnie’s macro didn’t work, but Daniela’s did (working in AutoCAD LT 2016 on mac). Still, thanks for posting this Donnie, between you & Daniela, wow, what a huge help!

  2. This doesn’t create polylines from splines the way Flatten does in AutoCAD for PC.  Do you have a work around for that?  i can do SPLINEEDIT, but that only works one line at a time.  I need something to do it en masse.  Thanks.

  3. Hi, I’ve followed the 5 steps from above. I have my new too on my toolset. But, when I sty to use it it says “invalid point”??
    Could you explain how to use it? 
    Thanks!