& Construction

Integrated BIM tools, including Revit, AutoCAD, and Civil 3D
& Manufacturing

Professional CAD/CAM tools built on Inventor and AutoCAD
Integrated BIM tools, including Revit, AutoCAD, and Civil 3D
Professional CAD/CAM tools built on Inventor and AutoCAD
Create, save, and edit a simple macro.
Type:
Tutorial
Length:
4 min.
Transcript
00:04
You can use the Action Recorder to record commands and actions that you perform in AutoCAD,
00:08
save those actions as macros, and then play them back to automate repetitive tasks.
00:13
Macros can be used to: create new geometry
00:19
modify existing geometry
00:20
perform utility functions to establish specific settings that might otherwise require multiple steps
00:26
You can record and access macro settings from the Manage tab, Action Recorder panel.
00:33
Expanding the Action Recorder panel displays the Action Tree of the currently selected action macro.
00:40
When recording an action macro, you can capture selections made or user input provided at the command line,
00:47
in toolbars, in ribbon panels, in menus, and in palettes.
00:53
One exception is that the Action Recorder does not record property changes made from a dialog box
00:59
in the Properties or Quick Properties palette.
01:03
In this case, you need to use the command line version instead.
01:07
For example, to insert a block, you can use the command -INSERT.
01:12
This is the INSERT command preceded by a hyphen to suppress the dialog box.
01:17
To create an action macro, on the Action Recorder panel, click Record to activate recording.
01:24
For this example, switch to the Home tab, Draw panel, and click Circle.
01:30
In the drawing, note the red dot beside the curser to indicate that your actions are being recorded.
01:37
Click to place the center point, drag to define the size, and then click again to create the circle.
01:43
Switch back to the Manage tab, Action Recorder panel, and click Stop.
01:49
The Action Macro dialog box appears, where you can add a name for your macro.
01:55
In this example, name the macro Simple_Circle, and then click OK.
02:02
Expand the Action Recorder panel to display the Action Tree,
02:05
and then click the pin so that it remains open.
02:08
The Action Tree displays the steps that were recorded when you created the macro.
02:14
Click Play to add another circle to your drawing.
02:18
When you close the Playback Complete notification, the new circle is not visible,
02:22
because the macro is set to add the circle at the exact same position as the first one.
02:28
Select the circles, then right-click and select Quick Properties.
02:32
You can now see that there are two circles selected.
02:36
Press ESC to close the Quick Properties window.
02:39
You can edit the macro so that the circle is not always positioned in the same location.
02:45
In the Action Tree, right-click the center point location and select Pause for User Input, so that you can specify a custom location.
02:54
Click Play again, and notice you are now prompted to specify a center point.
02:59
A new circle is added in your chosen location, but with the same diameter,
03:04
since you did not change that setting in the Action Tree.
03:07
To manage your action macros, expand the Action Macro drop-down, and select Manage Action Macros.
03:14
In the Action Macro Manager, you can copy, rename, modify, and delete a selected macro.
03:22
Clicking Modify opens the Action Macro dialog box used to create the macro.
Video transcript
00:04
You can use the Action Recorder to record commands and actions that you perform in AutoCAD,
00:08
save those actions as macros, and then play them back to automate repetitive tasks.
00:13
Macros can be used to: create new geometry
00:19
modify existing geometry
00:20
perform utility functions to establish specific settings that might otherwise require multiple steps
00:26
You can record and access macro settings from the Manage tab, Action Recorder panel.
00:33
Expanding the Action Recorder panel displays the Action Tree of the currently selected action macro.
00:40
When recording an action macro, you can capture selections made or user input provided at the command line,
00:47
in toolbars, in ribbon panels, in menus, and in palettes.
00:53
One exception is that the Action Recorder does not record property changes made from a dialog box
00:59
in the Properties or Quick Properties palette.
01:03
In this case, you need to use the command line version instead.
01:07
For example, to insert a block, you can use the command -INSERT.
01:12
This is the INSERT command preceded by a hyphen to suppress the dialog box.
01:17
To create an action macro, on the Action Recorder panel, click Record to activate recording.
01:24
For this example, switch to the Home tab, Draw panel, and click Circle.
01:30
In the drawing, note the red dot beside the curser to indicate that your actions are being recorded.
01:37
Click to place the center point, drag to define the size, and then click again to create the circle.
01:43
Switch back to the Manage tab, Action Recorder panel, and click Stop.
01:49
The Action Macro dialog box appears, where you can add a name for your macro.
01:55
In this example, name the macro Simple_Circle, and then click OK.
02:02
Expand the Action Recorder panel to display the Action Tree,
02:05
and then click the pin so that it remains open.
02:08
The Action Tree displays the steps that were recorded when you created the macro.
02:14
Click Play to add another circle to your drawing.
02:18
When you close the Playback Complete notification, the new circle is not visible,
02:22
because the macro is set to add the circle at the exact same position as the first one.
02:28
Select the circles, then right-click and select Quick Properties.
02:32
You can now see that there are two circles selected.
02:36
Press ESC to close the Quick Properties window.
02:39
You can edit the macro so that the circle is not always positioned in the same location.
02:45
In the Action Tree, right-click the center point location and select Pause for User Input, so that you can specify a custom location.
02:54
Click Play again, and notice you are now prompted to specify a center point.
02:59
A new circle is added in your chosen location, but with the same diameter,
03:04
since you did not change that setting in the Action Tree.
03:07
To manage your action macros, expand the Action Macro drop-down, and select Manage Action Macros.
03:14
In the Action Macro Manager, you can copy, rename, modify, and delete a selected macro.
03:22
Clicking Modify opens the Action Macro dialog box used to create the macro.
Industry:
Site Development (General civil engineering), Aerospace and defense equipment
Role:
Interior designer, Product designer, Civil engineer (Hydrology / hydraulics), Technical and engineering manager, Geotechnical Engineer, Civil engineer (Land and site design), Environmental Engineer, Civil engineer (Geotechnical), Civil engineer (Tunnels and bridges), Civil engineer (Roads and highways)
How to buy
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © 2025 Autodesk Inc. All rights reserved
Sign in for the best experience
Save your progress
Get access to courses
Receive personalized recommendations
May we collect and use your data?
Learn more about the Third Party Services we use and our Privacy Statement.May we collect and use your data to tailor your experience?
Explore the benefits of a customized experience by managing your privacy settings for this site or visit our Privacy Statement to learn more about your options.