Creating a Diagram

From RAD Studio
Jump to: navigation, search

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

  1. 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.
  1. 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.
  1. In the Diagrams pane, select the diagram type you want to create.
  2. In the Name field, enter a name for the new diagram.
  3. 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

  1. 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.
  1. 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.
  1. In the Diagrams pane, select the diagram type you want to create.
  2. In the Name field, enter a name for the new diagram.
  3. Click OK.
The new diagram of the selected type is created and appears in the selected model element in the Diagram View.

To create a diagram using the Hyperlinks command on the context menu

  1. 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.
  1. On the context menu, choose the Hyperlinks > To New Diagram command. The Add New Diagram dialog box opens.
  2. In the Diagrams pane, select the diagram type you want to create.
  3. In the Name field, enter a name for the new diagram.
  4. Click OK.
The new diagram of the selected type is created and appears as a hyperlink in the selected model element.


See Also