Adding diagrams to existing packages

A project has separate categories in the browser for object model, sequence, use case, component, deployment, structure, and collaboration diagrams. Additionally, all these diagrams (except collaboration diagrams) can be grouped under a package. Statecharts and activity diagrams are displayed within the class they describe. To add new statecharts and activity diagrams, select the class name in the browser instead of the package.

Procedure

  1. Right-click the package in the browser.
  2. Select Add New > Package.
  3. Type the name of the new package in the highlighted area in the browser.
  4. Right-click the new package and select the Add New > Diagrams submenu.
  5. Select the type of diagram you would like to add. The New Diagram window opens.
  6. Type a name for the new diagram in the Name field.
  7. If you want to populate the new diagram automatically with existing model elements. Click the Populate Diagram check box.
  8. Click OK. If you selected Populate Diagram, another window displays to allowing you to select which model elements to add to the diagram. IBM® Rational® Rhapsody® automatically lays out the elements in an orderly and easily comprehensible manner.
  9. The new diagram displays in the drawing area of the Rational Rhapsody window.

Feedback