IBM Support

How to remove Rational Rhapsody generated Annotations

Technote (FAQ)


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.

Document information

More support for: Rational Rhapsody
General Information

Software version: 8.0, 8.0.1, 8.0.2, 8.0.3, 8.0.4

Operating system(s): Windows

Reference #: 1649175

Modified date: 06 September 2013