June 20, 2013

How to: add action recorder macro to tool palettes

3 Flares 3 Flares ×

Do you like to use macro in AutoCAD? Either by creating your own or using action recorder? If you do, you may want to place it to tool palette, so you can easily access it.

If you use action recorder, to run it, you simply use the macro name to run it.

action_recorder

In the sample above, I named it as symb01. To run it, I can choose it in ribbon then press play. Or type symb01 then [enter].

To place the macro in tool palette, we need to add an AutoCAD command first, then modify the properties. It can be any simple AutoCAD command.

In this sample, I draw a line. Then drag it to my tool palette. If you need more information, you can read how you can create your own palette here.

add_line_to_palette

Now right click above the new button, then choose properties.

In properties dialog box, change the name and description as necessary.

Then in command string, change it to your macro name. Or if you want to write a macro here, you can do it too.

tool_palette_macro_editing

You may also want to change the image. Right click above the image and choose specify image. There are more options that allow you to change the objects layer and properties. You may want to explore it by yourself later. This time, let’s just click OK.

Now you should see the tool’s updated. Try to click it to see if it works.

finished_macro_tool

Not only in tool palettes, you can also create a new command to run the action recorder’s macro. That will give you more control. It will allow you to place it in AutoCAD ribbon panel or toolbar.

If you are command line lovers, don’t forget that you can use it in command alias (acad.pgp).

Personally I don’t use AutoCAD action recorder much. But I’m curious if you do use it regularly. What are you using it for? Will you share some sample for us to try?

3 Flares Twitter 0 Facebook 1 LinkedIn 2 Google+ 0 Email -- Email to a friend 3 Flares ×

Advertisement



You might also interested to

About Edwin Prakoso

Edwin works as an Application Engineer in Jakarta, Indonesia. He has 4 years experience in building industry, then start to work for Autodesk reseller.
He is certified as Revit Architecture 2010 certified professional and AutoCAD 2013 certified professional.
He loves sharing his experience and starts to blog on CAD notes. Now using CAD is more to a lifestyle for him than working.
You can reach him on twitter @CADnotes. You can also connect with him on LinkedIn. If you prefer email, reach him at edwin.prakoso@cad-notes.com.

  • the_mini_guy

    I played with it after seeing it @ AU09. It is a little limited in some applications, but is cool if ur learning how too write macro’s.

    • http://cad-notes.com Edwin Prakoso

      Interesting. I never see anyone use it on regular basis. What are you using it for?