If you have an existing project in Visual Studio, you can
import the code files into IBM® Rational® Rhapsody® to
create a model of your project. 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 the solution in Visual Studio.
- Click the Rational Rhapsody icon
in the Rational Rhapsody toolbar
in Visual Studio. (The icon is disabled if you do not have a solution
open in Visual Studio.) This starts and establishes
communication with Rational Rhapsody.
If Rational Rhapsody is
already running, communication is established with the instance of Rational Rhapsody that
is already running.
- Once focus is given to Rational Rhapsody,
use the menu to create a Rational Rhapsody project.
- In Visual Studio, use the Active Project list in the Rational Rhapsody toolbar
to select the project that you would like to import into Rational Rhapsody.
- In Visual Studio, use the Rhapsody Configuration list in
the Rational Rhapsody toolbar
to select the Rational Rhapsody configuration
to which your Visual Studio should be linked. You can select an existing
configuration or select the option of creating a configuration.
- Choose one of the two export options included in the Rational Rhapsody toolbar
in Visual Studio in order to export the entire project or only selected
classes. If you select the manual export option, the Rational Rhapsody Reverse
Engineering window will be displayed, allowing you to select
the relevant files.
- Before the files are imported into your model, you will
be asked whether you want to just import the files, or whether you
also want to link the Visual Studio project to the Rational Rhapsody model.
If you choose to link the project to the model, all changes to the
model will be reflected in the project code, and all changes to the
project code will be roundtripped into the model (see Working with Visual Studio projects linked to Rational Rhapsody models).