Question & Answer
Question
How do you create a customized submenu in IBM Rational Rhapsody?
Cause
You are searching for a possibility to group elements inside a profile or you want to define your own submenu.
Example:
Answer
Procedure:
- Create a customize property file named testfile.prp to get a submenu named MySubmenu and MyTestSubmenu and its child as shown above.
You can refer below sample code to create .prp file :-
Subject General Metaclass Model
Property Submenu5Name String "MySubmenu"
Property Submenu5List String "MyTest1,MyTest2"
Property Submenu6Name String "MyTestSubmenu"
Property Submenu6List String "Test1,Test2"
end
end
end
// An empty file contains'end' at the end of the file
- Edit the properties submenuList with Submenu5 and Submenu6 as shown below:
- Create a profile(named MyProfile) and New Term stereotype for all the element which is given in the Submenu#List in the profile.
- Include property file in profile (Model::Profile::PropertyFile)
![](/support/pages/system/files/support/swg/rattech.nsf/0/e0d01e161381796185257bf00050180c/Content/2.49C4.gif)
[{"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"General Information","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.5;7.5.1;7.5.1.1;7.5.2;7.5.2.1;7.5.3;7.5.3.1;7.5.3.2;7.5.3.3;7.6;7.6.0.1;7.6.1;7.6.1.1;7.6.1.2;7.6.1.3;7.6.1.4;8.0;8.0.1;8.0.2;8.0.3;8.0.4","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]
Product Synonym
Rational Rhapsody
Was this topic helpful?
Document Information
Modified date:
27 May 2022
UID
swg21650901