Separating a project into units

If you need to share units in one project with another or you need to control some model elements in a configuration management system, you might need to divide the project into units.

About this task

Keep in mind the Unit characteristics and guidelines.

Procedure

  1. Right‑click the element and then select Create Unit. The Unit Information window for the element opens with fields completed, as shown in the following figure: Unit information for ClassAbstractFactory
  2. By default, the Store in separate file check box is selected.
  3. Edit the default Unit Filename, if wanted.Rhapsody® assigns the appropriate file extension for you in the next field. TheRhapsody File Extension is displayed and cannot be changed if the unit must have a specific extension for Rhapsody .
  4. You change the Directory for the new unit.
  5. In the access privileges radio button area, you might want to change the default Read/Write selection for the new unit to Read Only or External Reference.
  6. The Include in next load check box is automatically selected since you are adding a unit.
  7. Click OK.

Results

The unit in the browser is now marked with a small red icon. Save the unit and the icon turns black.