Working with Visual Studio projects linked to Rational Rhapsody models

When a Visual Studio project is linked to a Rational® Rhapsody® model, any changes made to one are reflected in the other.

When a Visual Studio project is linked to a Rational Rhapsody model, the following behavior results when you work with both applications open:

This behavior is due to the Rational Rhapsody DMCA (Dynamic model-code associativity) feature.

Synchronizing the code files and the Rational Rhapsody model

If you make changes to your model when Visual Studio is not open, or make changes to your code when Rational Rhapsody is not open, you will need to synchronize your model and code at some point.

Procedure

Click the Synchronize button in the Rational Rhapsody toolbar in Visual Studio. Any new or changed code files are brought into your model, and then your code is updated to reflect any manual changes you made to the model.
Note: If you are working in code-centric mode, keep in mind that if there are any conflicts between the code and the model, preference will always be given to the code files.

Feedback