IBM Support

How to remove Rational Rhapsody generated Annotations

Question & Answer


Question

How do you remove the Annotations that are generated by IBM Rational Rhapsody?

Cause

You want a more refined version of the code without tagged sections.

Answer

Annotations are comment lines starting with a comment symbol and two pound signs (/*##).

For example:  /*## package Default */

These Annotations can be completely removed from the code by using the CG::File::InvokePostProcessor property to invoke a script that strips them; however, it is not recommended to completely remove the Annotations because Annotations demarcate new sections in the code and therefore play an important role in tracing between design constructs and the corresponding code.

Roundtrip capabilities and error highlighting also depend on them. Hence, doing so hinders tracing between the model and the code and might interfere with ability of the software to animate your model.

Note: Applying the Code Centric settings on the project turns off much of the generated Annotations.

[{"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"General Information","Platform":[{"code":"PF033","label":"Windows"}],"Version":"8.0;8.0.1;8.0.2;8.0.3;8.0.4","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022

UID

swg21649175