Creating a Diagram
Contents
Go Up to UML Diagram Procedures
When you create a new diagram, the Diagram View presents an empty background. You place various model elements on the background and draw relationship links between them according to your model requirements.
To create a diagram in the Model View
- In the Model View, right-click the model element in which you want to create a new diagram.
- Such model element can be a project, namespace (package), or UML diagram.
- If you select the project, then the Modeling adds a new diagram to the default namespace (package) of the project.
- On the context menu, choose one of the following commands:
- Choose Add > Class Diagram (if available).
- The new class diagram element appears in the selected model element.
- Choose Add > Other Diagram or use the CTRL+SHIFT+D shortcut. The Add New Diagram dialog box opens.
- In the Diagrams pane, select the diagram type you want to create.
- In the Name field, enter a name for the new diagram.
- Click OK.
- The new diagram of the selected type is created and appears in the selected model element in the Model View's tree.
To create a diagram in the Diagram View
- In the Diagram View, right-click the diagram background, a namespace (package) element, or a UML diagram element.
- If you right-click the background of the
default [diagram]
diagram of a project, then the Modeling adds a new diagram to the default namespace (package) of the project.
- If you right-click the background of the
- On the context menu, choose one of the following commands:
- Choose Add > Class Diagram (if available).
- The new class diagram element appears in the selected model element.
- Choose Add > Other Diagram or use the CTRL+SHIFT+D shortcut. The Add New Diagram dialog box opens.
- In the Diagrams pane, select the diagram type you want to create.
- In the Name field, enter a name for the new diagram.
- Click OK.
- The new diagram of the selected type is created and appears in the selected model element in the Diagram View.
- In the Model View or in the Diagram View, right-click the model element in which you want to create a hyperlink to a new diagram.
- Such model element can be a project (in the Model View), the diagram background (in the Diagram View), a namespace (package), or a UML diagram.
- If you select the project, then the Modeling adds a new diagram to the default namespace (package) of the project.
- If you right-click the background in the
default [diagram]
diagram of a project, then the Modeling adds a new diagram to the default namespace (package) of the project.
- On the context menu, choose the Hyperlinks > To New Diagram command. The Add New Diagram dialog box opens.
- In the Diagrams pane, select the diagram type you want to create.
- In the Name field, enter a name for the new diagram.
- Click OK.
- The new diagram of the selected type is created and appears as a hyperlink in the selected model element.