Deleting Objects
For this example you need to have objects, which are parts of groups, displayed on the screen.
- Select the Macro Create option.
- Give your macro a name, that is delete. Remember it is not necessary to add the lava extension.
- From the Macro Control toolbar select the Abort on macro mismatch option.
- Select the Delete button from the Modify toolbar.
- The Multiple Selection box and the Select Object variant of the Macro Control toolbar are then displayed.
From the Macro Control toolbar, select the By attribute option. This means that both the attribute that you select (that is Object, Group and Layer, Feature and Layer, Layer, Group, Feature and Name) and the attribute values (that is if you selected group as your attribute and then selected the group named CUBE, then the CUBE group will be deleted every time you run the macro) are used when you replay the macro.
If you select Interactive, then the multiple selection box is displayed, when the macro is replayed, from which you can choose a method for selecting objects. If you select Interactive by Criteria, then the attribute that you select will be used when the macro is replayed, but you can select the attribute value. For example if you selected layer when creating the macro, when replaying the macro you can select the actual layer to be deleted. - From the multiple selection box, select Group.
- Select an object from the group that you want to delete.
- Confirm the group selection and the deletion.
- Cancel deleting objects.
- Select the Stop button to stop recording the macro.
- Right-click to exit the Macro Create option.
- Select the Undo button on the Standard toolbar to return the objects that you have just deleted. If you do this, then you can test your macro.
To replay your macro:
- Select the Lava option (under the File menu).
- Enter, or select from the drop-down list, your macro name.
- The macro will be played. Your objects should be deleted.