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.
  • Len

    Anybody home?

  • Len

    Is this suposed to work for autocad for mac 2011, too?
    Cheers
    Len

  • JP Mays

    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.

  • Castro

    I’ve done this process step by step, it still says ‘unknown command’.  Any ideas?

  • Jessamine

    I have AutocadLT 2013 for Mac – would the above process work for LT or do I do something different? or does it just not work?

  • Nichom14
  • Alexide

    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!

    • Eminsua

      Ive got the same prob as Alexide.Explaim to use it please

      • Alexide

        Hi “Eminsua”, i don’t know why they have deleted this usefull tool, but there is a “homemade” solution. Just select the lines you want, then go to the “properties inspector” and the set the “Z” values to “0”. I hope that will help you.