Adding details to the object model diagram

Procedure

To add an attribute, operation, variable, function, or type to the diagram:

  1. Select the relevant item in the browser.
  2. Drag the item to the diagram window.
    Note: You can drag these types of elements from the IBM® Rational® Rhapsody® browser to any of the static diagrams, not just object model diagrams.

Results

When an item of this type is added to a diagram, the graphic element will display by default, the element name, the stereotype applied (if there is one) or the metatype of the element, and the associated image (if one has been defined).

Like all diagram elements, the Features window for these elements can be opened by double-clicking the element in the diagram.

The connectors provided in the Diagram Tools can be used to connect individual elements of these types if the connection is semantically logical.

Once an element has been added to a diagram, the element can be added to a container element by dragging the element into the container element, for example, an attribute on the diagram can be dragged into a class.

Note: Graphic representations for these types of items can only be created by dragging them from the browser to the diagram. There is no API equivalent for this action.

Feedback