IBM Support

How to create a hierarchical directory structure in Rhapsody

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:

  1. Create folders in the saved location of the project
  2. Place the package (.sbs) files within the folder
  3. Navigate into the model inside of Rhapsody
  4. Point Rhapsody to the new package locations (once prompted).

[{"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"General Information","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"7.5;7.6;8.0;8.1","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022

UID

swg21409314