If you have an existing IBM® Rational® Rhapsody® model,
you can generate code and create a Visual Studio project from the
model. You can also choose to link the Visual Studio project and the Rational Rhapsody model
so that any changes made to one are reflected in the other.
Procedure
- Open your model in Rational Rhapsody.
- In the Rational Rhapsody browser,
select an existing configuration or create one.
- If you are creating a configuration, create a Visual Studio
configuration (as opposed to an ordinary Rational Rhapsody configuration).
- If you are using an existing configuration, use the pop-up
menu to change the configuration to a Visual Studio configuration.
The focus shifts to Visual Studio and the New
Project window is displayed.
- Using the New Project window, create
a Visual Studio project. After the new project is
created, the project name is displayed as the Active Project in the Rational Rhapsody toolbar
in Visual Studio. The Rational Rhapsody configuration
you selected is displayed as the Rhapsody Configuration in the toolbar.
The new Visual Studio project is now linked to the Rational Rhapsody model.
All changes to the model are reflected in the project code, and all
changes to the project code are roundtripped into the model (see Working with Visual Studio projects linked to Rational Rhapsody models).
- To create the code files, select in Rational Rhapsody.