Whole model elements can be copied into clipboard and pasted into a model. When a model element is copied its representation in the diagram is also copied. Model elements can be transferred either inside the same model or between different models. The following model elements can be copied:
The properties which are not connections to other model elements, e.g. name and description, are copied with the model element. All the connections between elements are preserved and tried to be resolved in the target model. The resolving is done based on the element type and symbols. If a model element with the same element type and symbol can already be found in the target model, the connection is made to this model element, otherwise the model element which the connection refers to is also copied to the target model. This means that all the possible information is always copied. If a matching element type is found from the target model, but the custom attributes are not identical, the missing custom attributes will be added to the matching element type in the target model if the matching element type is not a base model element type and the user is an administrator in the model. If a matching element type is not found from the target model, the element type will added to the model if the base model allows the creation of new element types and the user is an administrator in the model.
Note the following about Relation type custom attribute values between model elements when transferring elements via clipboard:
1. if the target element of the relation is also copied and pasted together with the transferred element:
|•||If the pasted relation target element is replaced with an existing element, i.e. the element type has "Check for duplicates when pasting" Behavior option on and a match is found from the target model, the relation is set to point to the existing element.|
|•||If the pasted relation target element is deleted automatically, for example because the base model settings prevent creating new elements, the relation is cleared.|
2. If the relation's target element has not been copied with the element, the target model is checked for a matching element. If the target model contains an element with the same symbol, and a valid type for that relation, the relation is set to point to that element.
Copying has the following exceptions:
See also the Model-Specific User Rights section for information about how user rights affect copying.
Positioning of Copied Elements
When copying elements, you can define where the copied elements appear by first selecting an element or a group of elements, copying the selection (i.e. either selecting Copy from the Home tab or clicking Ctrl+C), clicking the left mouse button on the desired location on the diagram, and pasting the selection (by either selecting Paste from the Home tab or clicking Ctrl+V). The selection is now copied so that the top left corner of the element or group of elements is located where the mouse was clicked. Note that you can access the copying and pasting commands also through the right-click context menu.