Animation code differences for code-centric mode

The animation feature in IBM® Rational® Rhapsody® is made possible due to instrumentation code that the product inserts when it generates code for configurations where Instrumentation Mode has been set to Animation.

Because the underlying approach in code-centric mode is to minimize the intrusion into your code, there is a difference in the way animation code is generated in code-centric mode, compared to animation code generated in model-centric mode:

In code-centric mode, when code is generated for animation, only the files that contain animated elements are generated, rather than all the files as is the case in model-centric mode.

As is the case with model-centric mode, animation code that is generated is framed within #ifdef _OMINSTRUMENT blocks. If you make changes to the code within these blocks, roundtripping will ignore these changes.

Because code is not generated for diagrams such as statecharts and activity diagrams in code-centric mode, the only type of diagram that can be animated is a sequence diagram.

To further minimize the intrusion into your code as the result of animation, you can use the following Rational Rhapsody features when animating in code-centric mode:

While the instrumentation code is less intrusive in code-centric mode, it is important to keep in mind the following information when using animation:


Feedback