Question & Answer
Question
How do you create a hierarchical structure from a flat directory structure in IBM Rational Rhapsody?
Cause
By default, Rhapsody will create all of the files for a model in one directory. Having the file structure match the package structure in Rhapsody's browser can help with organizing a model, especially when using a content management system.
Answer
Set the General::Model::DefaultDirectoryScheme property in Rhapsody. (You can find this property by opening the Features for your model and selecting View All.)
This will create a new directory for each .sbs or 'package' file in Rhapsody.
You can then arrange the packages in the browser in a hierarchical order (or just leave them in the order that they are created) and the directory structure in your file system will be the same. This will work for newly added packages in Rhapsody.
To create this structure for pre-existing packages:
- Create folders in the saved location of the project
- Place the package (.sbs) files within the folder
- Navigate into the model inside of Rhapsody
- Point Rhapsody to the new package locations (once prompted).
Product Synonym
Rational Rhapsody
Was this topic helpful?
Document Information
Modified date:
27 May 2022
UID
swg21409314