## Copy

The copy function is activated either from the Copy (or Copy DDE Link) item of the Edit menu or from pressing the copy button which is found in both the edit mode tool bar and the run mode tool bar (see figure 1).

Figure 1: The copy tool button from the main window tool bar.

The copy function has two meanings:

1. If you are in run mode and you select a node or a state of a node in the node list pane, then if you activate the copy function, it copies a DDE link. See the Copy DDE link section for more information about this case.
2. If you are in edit mode or if you are in run mode and you select one or more nodes in the network pane, then if you activate the copy function, it copies the node (a node is seen as both a graphical object and an object in a Bayesian belief network or influence diagram). The rest of this section describes this meaning of the copy function.

When you have activated the copy function, you have the selected sub network copied onto the clipboard of the Windows system. Then you can use the paste function in HUGIN Runtime to make a copy of it in the same or another network pane (which must be in edit mode).

When you cut a selected sub network, all internal links in the sub network are copied to the clipboard. Also links from external nodes to nodes within the selection are copied and can be restored when pasting. Links from nodes within the selection to external nodes, however, are not copied.

When pasting a sub network from the clipboard, a link from an external node to a node within the sub network is restored if the external node "exists" in the new network. Here, we say that a node "exists" if a node appears with the same node name as the external node in the original HUGIN network. The external node in the new network needs not have the same node label as the external node in the original network. If the external node does not "exist" in the new network, the link is not restored. This has impact on the conditional probability table of the node which the link pointed to and one should reconstruct it.

You can also use paste functions in other applications with the HUGIN network currently on the clipboard. This makes it easy to create figures for documentation reports.

Back