Create and reuse snippets
A snippet can be created in three ways.
-
From a selection of steps:
(must be steps that can be grouped and not a single Group step)
-
Select one or more steps and click
Create Snippet from Selection
on the
Edit menu.
- Enter a name for the new snippet.
- Create a snippet of that name containing the select steps.
-
Select one or more steps and click
Create Snippet from Selection
-
Turn a group step into a snippet step:
-
Select a Group step and click
Convert Group to Snippet
on the
Edit menu.
- Enter a name for the new snippet.
- Create a snippet of that name containing the group steps.
To convert a snippet to a Group step, select a snippet, and click Convert Snippet to Group
on the Edit menu.
-
Select a Group step and click
Convert Group to Snippet
-
Create a snippet from a new snippet:
- On the File menu, select New Snippet.
-
Enter a name for the new snippet.
An empty snippet appears in your project and the Snippet editor opens.
You cannot edit the snippet contents (the steps inside the snippet) inside this editor.
- Edit the description and referenced variables list as needed.
You can right-click a snippet in the Project tree and select
Create robot with same input. This generates a new robot based on the snippet
input parameters, variables, and dependencies. For details, see
Create Robot from existing Basic
Engine Robot or snippet.