Creating Diagram Elements

See Also

The UML Modeling feature lets you create diagram elements in several ways. To create a new element, you can drag an icon from the Modeling Palette window to the Diagram editor, or you can use a pop-up menu in the Projects window . To reuse an existing element, you can drag its node from the Projects window to an open diagram, or you can copy an element from one diagram to another.

To create a new element using the Modeling Palette and the Diagram editor:

  1. Open the diagram in the Diagram editor.
    Its corresponding Modeling Palette appears.
  2. Drag the element you want to create from the Modeling Palette and click in the Diagram editor.
  3. Right-click to deselect element creation mode.
    The element stays selected.
  4. Type a name for the element while it is still selected.

To create a new element using the Projects window:

  1. In the Projects window, expand a project to display a diagram.
  2. Right-click the diagram and choose Add > Element.
    The IDE opens the New - Create New Element wizard.
  3. Select an element type.
  4. Type a name for the new instance of the element.
  5. Click OK.
    The IDE displays the new element in the Projects window.

To reuse an element from a diagram shown in the Projects window:

  1. Open the receiving diagram in the Diagram editor.
  2. In the Projects window, expand the Model node and the source diagram node.
  3. Select the node of the element you want to reuse in the receiving diagram.
  4. Drag the node into the diagram.
    The element appears in the diagram, labeled to show its source diagram and original name.

To reuse an element directly from a diagram:

  1. Open both the source diagram and the receiving diagram in the Diagram editor.
  2. In the source diagram, select the element you want to reuse.
  3. Choose Edit > Copy from the IDE's main menu.
  4. Right-click in the receiving diagram and choose Paste.
    The element appears in the receiving diagram, labeled to show its source diagram and original name.

To create bend points;

When creating bend points that are to link two elements in a diagram, double click on the edge and then move the bend point after it has been created to the desired position.

See Also
Working With Activity Diagrams
Working With Class Diagrams
 
Working With Sequence Diagrams
Working With State Diagrams
Working With Use Case Diagrams

Legal Notices