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.
- Before you create a diagram, use the New wizard (File > New Project) to create a new Project.
To create a new element using the Modeling Palette and the Diagram editor:
- Open the diagram in the Diagram editor.
Its corresponding Modeling Palette appears.
- Drag the element you want to create from the Modeling Palette and click in the Diagram editor.
- Right-click to deselect element creation mode.
The element stays selected.
- Type a name for the element while it is still selected.
To create a new element using the Projects window:
- In the Projects window, expand a project to display a diagram.
- Right-click the diagram and choose Add > Element.
The IDE opens the New - Create New Element wizard.
- Select an element type.
- Type a name for the new instance of the element.
- Click OK.
The IDE displays the new element in the Projects window.
To reuse an element from a diagram shown in the Projects window:
- Open the receiving diagram in the Diagram editor.
- In the Projects window, expand the Model node and the source diagram node.
- Select the node of the element you want to reuse in the receiving diagram.
- Drag the node into the diagram.
The element appears in the diagram, labeled to show its source diagram and original name.
- If the element has a main node and a sub-node, drag the main node.
To reuse an element directly from a diagram:
- Open both the source diagram and the receiving diagram in the Diagram editor.
- To see both diagrams open side by side, drag one diagram below the other in the Diagram editor.
- In the source diagram, select the element you want to reuse.
- Choose Edit > Copy from the IDE's main menu.
- 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