VWorks User Guide : Using macros to create protocols : Adding macros to the macro library

Adding macros to the macro library
About this topic
This topic describes how to create macros and add them to the macro library and how to delete macros.
The procedures in this topic assume that a protocol task sequence that you want to replicate as a macro is already created. For details on how to set up tasks and create a protocol, see Workflow for creating a basic protocol.
Creating a macro and adding it to the macro library
To create a macro and add it to the macro library:
1
 
2
Right-click the selection, and then choose Add to macro library from the shortcut menu. The Add to Macro Library dialog box opens.
 
3
Type a name for the macro, and click OK. A descriptive name can be more helpful for other macro users than a generic name. A version number is appended to the macro name, starting with version 1.
The corresponding macro icon appears in the Available Macros area and in the protocol. Any future edits of the macro will increment the version number by 1.
IMPORTANT To ensure version control, you should not change the macro name after the macro has been used in a protocol. Although you can rename a macro in the macro library, doing so removes any association to instances of the macro with the former name that are already in use in a protocol.
In the protocol area, expand the macro icon to view and to verify the macro contents.
 
Note: To associate a custom icon or custom parameters with the macro, see Editing a macro.
Adding a copy of a macro or saving the macro by a different name
You can create a copy of a macro to add to the macro library. For example, you might want to copy a macro and use the copy as the starting point for creating a similar but slightly different macro.
To create a copy of a macro from the Available Macros tab:
1
In the Available Macros tab, right-click the macro icon, and then choose Make a copy from the shortcut menu.
2
In the Create Macro Copy dialog box, type a new name for the copy, and click OK. The new macro icon appears in the Available Macros area.
To save a copy of a macro from a protocol:
1
2
In the Add to Macro Library dialog box, type a new name for the copy, and click OK. The new macro icon appears in the Available Macros area.
Deleting a macro from the macro library or a protocol
You can delete a macro from the macro library or a macro instance from a protocol:
Deleting a macro from the macro library. In this case, instances of the deleted macro can still remain in your protocols. However, the instances of the deleted macro no longer have version control or any association with other instances.
Deleting an instance of a macro from a protocol. In this case, only the selected instance is deleted from the protocol. The macro remains in the macro library and in other protocols where it is used.
Note: In a protocol where you no longer want a macro, yet you still want to retain a macro’s contents (task sequence), you can revert the macro. See Reverting an instance of a macro to an ungrouped task sequence.
To delete a macro from the macro library:
In the Available Macros area, right-click the macro icon, and then choose Delete from the shortcut menu. The macro icon disappears from the Available Macros list.
To delete an instance of a macro from a protocol:
In the protocol, right-click the macro icon, and then choose Delete from the shortcut menu. The macro icon and macro task contents disappear from the protocol.
Related information