IBM Support

Using Active Code View results in incorrect code displayed for model elements in Rational Rhapsody

Troubleshooting


Problem

Attempts to use the Active Code View window results in incorrect code displayed for updated or newly created elements in an IBM Rational Rhapsody model.

Symptom

No new code is generated for updated or new created elements in a Rational Rhapsody model.

Cause

Active Code View always shows the actual code of the element which you select in Rational Rhapsody browser or in a diagram.

Diagnosing The Problem

Procedure:

  1. Create a new Rhapsody element, e.g. a new class, but the Active Code View window does not show the code for this new created class.

  2. Modify an existing Rhapsody element, e.g. a class, but Active Code View window does not show the updated code for this modified class.

Resolving The Problem

When using Active Code View it is necessary to use the menu option Code > Dynamic Model Code Associativity then select the sub menu option Bidirectional or Code Generation.

Notes:

  • Active Code View only works correctly when model and code are in synch.

  • If you disable code generation in Dynamic Model Code Associativity, then no new code is generated when changing the model. In this case updates in Active Code View window are displayed only when you manually generate or re-generate new code.

[{"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"General Information","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"7.5;7.5.0.1;7.5.1;7.5.1.1;7.5.2;7.5.2.1;7.5.3;7.5.3.1;7.5.3.2;7.5.3.3;7.6;7.6.0.1;7.6.1;7.6.1.1;7.6.1.2;7.6.1.3;7.6.1.4;7.6.1.5;8.0;8.0.1;8.0.2;8.0.3;8.0.4;8.0.5;8.0.6;8.1;8.1.1","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022

UID

swg21686415