Creating a Diagram Element

From RAD Studio
Jump to: navigation, search

Go Up to Creating Elements, Links, and Shortcuts on Diagrams

This topic explains how to create a single diagram element.

To create a diagram element in the Model View

  1. In the Model View, right-click the model element in which you want to create a new diagram element.
  2. On the context menu, choose one of the available Add > Element commands. The Modeling creates and shows the specified Element diagram element in the selected model element. The Modeling activates the in-place editor for the name of the created element.
Notice that the Add context menu shows only the diagram elements that can be created in the selected model element.

To create a diagram element in the Diagram View

  1. In the Diagram View, open a target diagram.
    • Create a diagram element in the target diagram, using the Tool Palette:
      1. On the Tool Palette, specify the diagram element you want to create:
        • On the Tool Palette, double-click the diagram element. The Modeling creates and shows the specified element in the diagram background. The Modeling activates the in-place editor for the name of the created element.
        • On the Tool Palette, click the diagram element; the corresponding item becomes highlighted.
          1. Click the target diagram background in the place where you want to create the element. The Modeling creates the specified diagram element in the pointed position. The Modeling activates the in-place editor for the name of the created element.
          2. Alternatively, move the mouse cursor into the target diagram. Hover the mouse cursor over a diagram element. If the diagram element obtains the highlighted frame, then in this diagram element you can create the element selected in the Tools Palette. Notice that some compartments and members in some elements on the target diagram also can obtain the highlighted frames; this means that in such compartments and members you can also create the element selected in the Tools Palette.
          3. Click inside the highlighted frame; the Modeling creates and shows the element—selected in the Tools Palette—inside the element with the highlighted frame. The Modeling activates the in-place editor for the name of the created element.
    • Create a diagram element, in the target diagram, using the Add context menu:
      1. Right-click the diagram background or an element on the diagram. The context menu shows the Add > Element commands. Here the Add menu shows all Element diagram elements that can be created in the element selected on the diagram.
      2. Choose the Element you want to create. The Modeling creates and shows the selected diagram element in the specified place. The Modeling activates the in-place editor for the name of the created element.


See Also