Copying/Moving Items Between Diagrams (BDE)

  1. In the drawing area, select the diagram items you want to cut or copy.

    A selected item is marked by handles at its edges.

  2. ClosedCut or copy the selected items.

    • In the Edit menu, select Cut or Copy.
    • Press <Ctrl> + <x> or <Ctrl> + <c>.
    • Click Cut or Copy.
  3. Open the target component and load the target diagram.
  4. Click in the drawing area and Closedpaste the items.

    • In the Edit menu, select Paste.
    • Press <Ctrl> + <v>.
    • Click Paste.

    One of the following happens:

    • If at least one method/process is available, the Select Method window opens. It lists all methods/processes in the current diagram that can be used as target, and it offers the possibility to create a new method/process. Name or type conflicts (see Copying, or Moving Graphical Items) are indicated by a warning icon in front of the method/process name.

      Note

      Continue reading at step 5.

    • If no method/process is available in the diagram, and the selected diagram items includemethod-local elements, the Create new Method window opens. It suggests the creation of a new method/process.

      Note

      Continue reading at step 6.

    • If no method/process is available in the diagram, and the selected diagram items do not includemethod-local elements, the elements are pasted to the new diagram.

      Note

      Continue reading at step 7.

    • The Ignored Elements window opens. It lists all elements that cannot be pasted to the target component or target method/process.

      Note

      Continue reading at step 8.

  5. In the Select Method window, select an existing method/process, or create a new one, and click OK.

    If you selected an existing method/process with name conflicts, an Element Name Conflict window opens for each conflicting item. It offers Closedseveral solutions. Continue as follows:

    Keep

    The existing element replaces the copied element.

    Overwrite

    The copied element replaces the existing element.

    Create New

    (not available for return values)

    Pastes the copied element to a new element named <element name>_<n>, <n> being the lowest integer number that causes no name clash.

    If the renamed element causes a new name conflict, renaming is done in alphabetical order; see the Closedexample.

    Cancel

    Aborts the paste procedure.

    The Apply to the next <x> conflicts option allows you to apply your selection to all name conflicts.

    1. In the Element Name Conflict window, solve the name conflicts all in once or individually.

    If you selected an existing method/process with type conflicts, an Element Type Conflict window opens for each conflicting item. It offers Closedseveral solutions. Continue as follows:

    The Apply to the next <x> conflicts option allows you to apply your selection to all type conflicts, with the exception of conflicting return values.

    1. In the Element Type Conflict window, solve the type conflicts all in once or individually.
    2. If you chose Keep or Overwrite, edit the model and change the invalid parts.
  6. In the Create new Method window, click Yes to create the new method/process and paste the diagram items.
  7. Create a process or method and edit the sequence calls.
  8. 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 Items in the Same Diagram (BDE)

Copying/Moving Diagram Items Between Diagrams (SWC Editor)

Creating a Process

Creating a Method

Copying or Moving Graphical Items

Working on Sequence Calls