Join Scott Onstott for an in-depth discussion in this video Recording a sequence of actions, part of Customization Techniques with AutoCAD 2013.
The action recorder essentially allows you to program without knowing any programming code. It works by recording exactly what you do. And then you can playback and customize this recorded sequence of steps later on. Suppose that you realize that you are frequently creating double-headed multileaders on an annotation layer in the course of your work. This shoudl jog your memory that you ought to creat and action macro to save time, so that you don't have to always performance the sequence of repetitive steps.
Our game plan in this lesson is to create an action macro that records the process of creating a new layer, assigning it a color, setting it current, drawing a multileader and adding a second leader object to the multileader. So to get started, go to the drafting and annotation work space and then click the manage tab on the ribbon, in the Action Recorder panel, click Record. Then go to the Annotate panel. (audio playing) Notice that there is a red circle next to the cursor.
This indicates that you are currently recording. However, there's no need to hurry. You can take as much time as you like, but each thing that you do will be added to the list of steps in the action macro. So, the first thing I want to do is create a new layer. But instead of using the Layer Properties Manager, which is how I would normally do this sort of thing, if I'm creating an action macro, I need to do the command line version of this action. So I'm going to have to use the dash layer command. This forces AutoCAD to use the command line version. So I'll press Enter.
And you'll see all the options of the layer command appear here on the command line rather than in the layer properties manager palette interface. So now I'll type m for make and press enter. It says enter name for new layer becomes the current layer. I'll type annotation as the name. So not only does this create the layer, but it also sets it current. If the layer already exists this will simply set it current. So I'll press Enter and then I'd like to assign a color to that layer. So I'll type C Enter for color.
And then I can either type in a color name or a color number. I'll type color 30 which is a orange color and press Enter. It says enter name list of layers for color 30. Now in this case, I want to assign color 30 to the Annotation layer. So I'm going to type that in. (audio playing) Annotation, Enter. And then Enter one more time to end the layer command. Go to the Home tab (audio playing) and you'll see that there's an annotation layer which is current and it has this orange color.
So far so good. Next, go to the Annotate tab, (audio playing) and click the Multileader tool, here on the Leaders panel. It says Specify Leader Arrowhead Location. I'll just click some arbitrary point on the screen. Now it says Specify Leader Landing Location. I'll click some other point, off to the side. (audio playing) And then I'll type in some sample text (audio playing) here and then click close text editor. (audio playing) So the multileader object has been created. Now the whole point of this is to create a multileader with two arrow heads on it. So that can be accomplished by clicking on this tool. Right here, which is add (audio playing) an arrow to the multileader. Then select the multileader object and click another arbitrary point (audio playing) to add the arrow.
Then press Enter to end the command. So at this point, I think I've done everything that I've set out to do. But we're still in Record mode. So, let's go to the Manage tab (audio playing) and then click Stop in the Action Recorder panel. At this point, we're prompted to save in Action Macro Command Name. So, go up here, highlight this name and type doubleheadedmultileader, all one word without any spaces.
And then click OK. (audio playing) So in this lesson you recorded the raw data from a sequence of steps in action macro.
- Authoring dynamic blocks
- Configuring plotters and plot style tables for output
- Configuring the user interface
- Creating custom linetypes
- Automating tasks