Talk to our expert and start your robotic adventure
Operations on macro graph
Macro graph is where you see all the recorded steps. It is available only In the robot’s advanced view. On the graph you can conveniently perform actions on steps, such as manual addition and deletion, editing or catching up.
The macro graph is the basic and most important view for people creating and editing macros. To make it easier for you, we have described some operations you can perform on it. We start with the basics, namely moving, deleting, copying and pasting steps.
Move step
The basic move on a graph involves changing the position of an action. This is most commonly used when grouping steps into blocks, e.g. when you want a certain category of actions, such as copy and paste, to occur in one sequence.
To do that, left-click on a step and then move it to the desired location in the list. Just like icons on your desktop.
You can move more than one step: just select a group of steps and in the same way move them to another place in the list. To select a group of steps:
Delete step
It often happens that during recording the user performs unnecessary actions that prolong and sometimes prevent the macro from working, such as unnecessary mouse clicks or opening the wrong program. To remove a step:
Each time you want to delete a step, the robot will ask you to confirm you want to perform this action. Click Yes to confirm.
Important: if you accidentally delete a step, direct restoration will only be possible by restoring the version of the macro in which that step was available. It is therefore important to save the macro regularly when editing it. You can also restore a deleted step manually – by recording or adding it manually.
Idea: you can delete all unsaved changes while editing a macro by pressing the Reload button on the top bar of the robot. If the macro has been paused at a step, it will return to the first step when you press this option.
Copy step
Some recorded steps in a macro you may want to repeat without re-recording them, such as copying data from successive rows in an Excel sheet. You can do this using a loop, or by copying the step in question.
To copy a step:
Paste step
To paste a step:
Remember that you can also paste a step manually by pressing and holding the left mouse button and moving the step to the right place.
You can also perform more advanced operations on the robot graph. These are used to make direct changes to the macro, such as skipping a step or changing its parameters. There are many reasons for editing steps and possibilities, but we will focus on the most important and frequently used ones.
Skip step
Skipping a step allows you to temporarily disable it from the robot. This feature is useful when some action in a macro is unnecessary for a given period or for a given task, but may come in handy again some time later.
To skip a step:
To turn off skip step:
Skipped steps are highlighted in dark grey.
Pause step
When you pause a step and start the robot, the macro will pause on the selected step and enter debug mode. Stopping a step is mostly used when you want to fix a step in a macro – check which step is faulty and debug the right one.
To pause a step:
To restore a step:
Idea: you can skip or pause multiple steps and blocks simultaneously. When you skip a block, all sub steps in it will also be marked as paused or skipped.
Group steps
Group steps is used to segment steps and to perform specific actions on those segments. We distinguish 4 group types:
Block – improves macro’s readability, allows to divide macro into stages
Loop – repeats a given set of steps until the end of the set or until a given effect is achieved
Run one of… – runs another block if the previous one failed to reproduce due to an error
Conditional step – launches the specified step depending on the fulfilment of the specified condition
More about groups and their use can be found here.
To group a step or steps, right-click on a step or on a marked group of steps and select the group type you are interested in from the context menu
Grouped steps are marked with a frame. Operations in blocks work exactly the same as outside them; you can freely move, delete or paste steps in blocks. You can also perform the same operations on the blocks themselves.
To remove a given block:
Important: when deleting a block frame, only the block option is deleted, not the steps in it.
The examples given above are for operations you can perform from the macro’s graph view. We have described all of them in more detail in the articles below:
How to modify created macro? – deleting and adding steps
Manual adding steps to the macro – from the panel/from the debugging tool
Recording additional steps to macro
How to create a loop in the macro?