Customizations for Rational Rhapsody RpyDefault represents all the elements included in the Diagram Tools of the base diagram. If this property is left empty, only the tools from the base diagram is displayed. The toolbar can contain any drawable elements supported by the base diagram, and any new elements based on these elements. Adding customized diagrams to the diagrams toolbar Once you have created a customized diagram type, it is included automatically in the Tools menu. You also have the option of including an icon for the new diagram type in the Diagrams toolbar. To add the new type of diagram to the Diagrams toolbar: 1.
Open the Features window for the profile to which you added the new type of diagram. 2. On the Properties tab, modify the value of the General::Model::DiagramsToolbar property to include the name of the new diagram type in the comma-separated list, for example, OV-1, RpySeparator,RpyDefault . (If this property is left empty, the toolbar includes only the default icons.) The strings to use in this list are given in Diagram types . Creating a customized diagram element After a new diagram type have been defined, you can define new drawing elements that can be included in the Diagram Tools for the new type of diagram.
This is done by basing the new element on one of the elements that is available by default in the diagram type that served as the base for the new customized diagram, as follows: 1. Select the name of the relevant profile in the browser, and use the context menu to create a new stereotype. 2. 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 drawing element that should serve as the base element for the new diagram element type you are creating. Also, select the New Term check box. b. On the Properties tab, provide values for the following properties:
Model::Stereotype::DrawingToolIcon provides the name of the .ico file that should be used as the icon for the new drawing element when it is included in a Diagram Tools . Model::Stereotype::DrawingToolTip provides the text that should be displayed as a tool tip for the icon in the Diagram Tools . 494 User Guide