IBM Support

How to customize the class diagram toolbar in Rational Rhapsody

Question & Answer


Question

How do you customize the Class Diagram Toolbar in IBM Rational Rhapsody?

Cause

The General::Graphics::<Diagram Name>Toolbar property is available only for Rhapsody classic diagrams. The "Class Diagram" is located under stereotype in PredefinedTypes and is not a classic diagram.

Answer

Toolbar for class diagram can be customized using Model > Stereotype > DrawingToolbar property.

The Class Diagram stereotype can be found in Rhapsody PreDefinedTypes packages under the following directory:

<Rhapsody Installed Directory>\Share\Properties\PreDefinedTypes.sbs

The property contains the list of the Metaclass names displayed in the Class Diagram toolbar.

In order to custom/change the Class Diagram toolbar, change the property accordingly as follows.

  1. Open a new Rhapsody project

  2. Open File > Add to Model

  3. Select PreDefinedTypes.sbs package under the directory:

    <Rhapsody Installed Directory>\Share\Properties\

  4. Choose "As Unit" option

  5. When message - "Package PredefinedTypes already exist" - appears, select OK

    Under Package, PredefinedTypes are now editable

  6. Update Class Diagram stereotype Model::Stereotype::DrawingToolbar property

  7. Save the change

  8. Ensure to back up and replace PreDefinedTypes.sbs under <Rhapsody Installed Directory>\Share\Properties\ directory to the saved PreDefinedTypes.sbs located under <Project>\<Project_rpy>\.

[{"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Rational Rhapsody Developer","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.5.3","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022

UID

swg21506738