Creating a customized diagram Creating a customized diagram In addition to allowing you to filter out certain out-of-the-box diagrams that you do not want to see, Rational Rhapsody allows you to add customized diagrams. This is done by creating a new diagram type on the basis of one of the Rational Rhapsody basic diagrams and adding customized diagram elements, if needed, to the list of elements available for the new type of diagram. Note The procedure for adding customized diagrams with custom elements can only be used for adding new types of diagrams. It is not possible to add new diagram element types to the standard Rational Rhapsody diagrams.
Customized diagrams can be added at the individual model level, or they can be added to profiles so that they can be used with other models as well. To create your customized diagram: 1. In the browser window, add your customized profile. See Creating a customized profile . (While the customized diagram can be added for the current model only, usually developers and designers want to add it to a profile so that it can be reused.) 2. Select the name of the new profile in the browser, and use the context menu to create a new stereotype . See Stereotypes . 3. Open the Features window for the new stereotype you created, and set the following values: a.
On the General tab, from the Applicable to list select the type of diagram that should serve as the base diagram for the new diagram type you are creating. In addition, select the New Term check box. b. On the Properties tab, enter the required values for the following properties: Model::Stereotype::DrawingToolIcon supplies the name of the .ico file that should be used as the icon for the new diagram type in the Diagrams toolbar. Model::Stereotype::BrowserIcon supplies the name of the .ico file that should be uses as the icon to represent the new diagram type in the browser.
If no value is provided for DrawingToolIcon , the file name entered for BrowserIcon are used in the Diagrams toolbar as well. If values are not provided for either of these properties, then the icon for the base diagram is displayed both in the browser and in the Diagrams toolbar. Model::Stereotype::DrawingToolbar is a comma-separated list representing the elements that should be included in the Diagram Tools for this type of diagram, for example, RpyDefault,RpySeparator,Actor,Block . Rational Rhapsody 493