Copying/Moving Diagram Items Between Diagrams (SWC Editor)
Note |
|---|
This topic applies only to SWCs specified as block diagrams. |
To cut/copy diagram items from one diagram and paste them to another diagram, proceed as follows:
In the drawing area, select the diagram items you want to cut or copy.
A selected item is marked by handles at its edges.
To cut or copy the selected items, do
one of the following.- Open the target component and load the target diagram.
To paste the items, click in the drawing area of the target component and do
one of the following.One of the following happens:
If no method/runnable is available in the diagram, and the selected diagram items contain method-/runnable-local elements, the Create new Method window opens. It suggests the creation of a new method/runnable.
Note
Continue reading at step 6.
The Select Method window opens. It lists all methods/runnable in the current diagram that can be used as target, and it offers the possibility to create a new method/runnable. Name or type conflicts (see Copying or Moving Graphical Items) are indicated by a warning icon
in front of the method/runnable name.The Ignored Elements window opens. It lists all elements that cannot be pasted to the target component or target method/process/runnable.
Note
Continue reading at step 7.
In the Select Method window, select an existing method/runnable, or create a new one, and click OK.
If you selected an existing method/runnable with name conflicts, an Element Name Conflict window opens for each conflicting item. It offers
several solutions. Continue as follows:In the Element Name Conflict window, solve the name conflicts all in once or individually.
If you selected an existing method/runnable with type conflicts, an Element Type Conflict window opens for each conflicting item. It offers
several solutions. Continue as follows:- In the Element Type Conflict window, solve the type conflicts all in once or individually.
- If you chose Keep or Overwrite, edit the model and change the invalid parts.
- In the Create new Method window, click Yes to create the new method/runnable and paste the diagram items.
In the Ignored Elements window, click Continue to paste the allowed diagram items.
Note
The model will be invalid, due to the ignored elements. You must edit it before you can use it.
See also
Copying/Moving Diagram Items in the Same Diagram


