Prev Next

Copy Elements Between Packages

You can quickly and easily duplicate one or more elements, with their child elements and diagrams, across Packages. You can insert a copy of an element under one or more other Packages, in the same project file or any other project file.

Operations

Operation

Actions

See also

Copy the Elements

In the Project Browser, select the elements to copy, right-click on one and select:

     'Copy / Paste | Copy to Clipboard | Full Structure for Duplication'

Alternatively, click on a selected element and press Ctrl+Shift+C.

The 'Copying Selected Element(s) to Clipboard' dialog briefly displays while the copy operation completes.

Paste the Elements

In the Project Browser, right-click on the Package into which to paste the copied elements, and select the 'Copy / Paste | Paste Element(s) from Clipboard' option.

Alternatively, click on the Package and press Ctrl+V.

The 'Pasting Element(s) from Clipboard' dialog briefly displays while the paste operation completes.

The target Package is expanded and the pasted elements are exposed in the Project Browser. If you are pasting the elements within the same model as the copied source, the source parent Package is also collapsed.

If the target Package already contains:

  • An element of the same type with the same name as a pasted element, the pasted element name has the suffix - Copy
  • An element with the same type and name as the pasted element including the - Copy suffix, the suffix becomes - Copy1 (or - Copy2, - Copy3 and so on, as copies of the element accumulate in the target Package)

You can keep the same element names as the source, or you can rename each element either by clicking twice on it and editing the name in the Project Browser, or by double-clicking on it and editing the name in the 'Properties' dialog.

Notes

  • A copy of an element does not have the external cross references of the source element; that is:
         -  if one element is copied it has no connectors
         -  if more than one element is copied, only the connectors between the copied elements are
            retained
         -  however, if those elements come from a Sequence or Communication diagram and the diagram
            itself is not copied, the message connectors between the copied elements are not retained
  • You cannot paste an element into a Package that is locked by another user or that is checked in; the 'Paste...' option is grayed out in the context menu

Learn more