This example shows how to apply an object selection filter when selecting objects and then change the color property of the selected objects.
In this example, you learn how to
You start recording actions on the Action Recorder panel. To display the Action Recorder panel and to start recording, perform this step:
Once recording is started, you can select objects and then modify their properties with the Properties palette. Follow these steps:
After all the actions have been recorded, stop recording and save the recorded actions to an action macro file. Follow these steps:
With a request for user input, you can prompt for a new value when playing back an action macro. In this example, you change the selection set created to use the Pick First selection or prompt for a selection set when the action macro is played back. Follow these steps:
When you play back the action macro, you are prompted to select objects if no objects are selected. To see the results of the action macro, follow these steps:
The circles in the selection set are changed to the color blue.
Undo the changes made by the action macro by clicking Undo from the Quick Access toolbar. Now select some objects in the drawing and playback the BlueCircles action macro. This time the action macro uses the Pick First selection and you are not prompted to select the objects in the drawing when the action macro is played back.