Copying and pasting graphs
You can also copy an entire graph. Like with actions and nodes, you can
[Right click > Copy current graph] - there is no shortcut for this. You can paste the graph by
[Right click > Paste current graph] or
[Control + Alt + V]. You can do this wherever you want it to be within the model, but you can also use it in a different model. This is useful, but remember that libraries are a better method if you want to do this structurally.
For example, if you want the end user to fill in an NDA agreement, but also another related document next to it, you can copy both documents into one model. However, before we start the example on how to copy a graph, there are three things you need to take into account:
- You cannot copy more than one graph at a time. For example, if I copy my NDA to another model, it does not copy the sub-graphs located in my modules node.
- It is important to maintain continuity between variable names when pasting sub-graphs. For example, the ‘applicable law’ sub-graph contains calculations that refer to the main graph. If I were to paste this graph into another model, I would have to make sure that I named the main graph ‘main’. This can only be done if the existing graph you are pasting it in already has a different name. In conclusion: make sure that you carefully crosscheck the names of your variables with the names of the variables in the graph that you are pasting in.
- You can also copy paste actions used in the model. However, you can only do this within the same model. If you want to copy an action to a different model, copy and paste a node or graph. These will place all the actions within that graph or node in the model that you want to paste the action in, all of which you can edit independently later on.
Open a new Berkeley Publisher screen, select the start node by right clicking on it, and choose
[Right click > Paste graph] or use
[Ctrl+Alt+V]. The Publisher will suggest a new name for the graph for you, as it should not be the same as a graph that already exists in the model you are pasting it in.