IBM Support

Generate or Regenerate does not generate new code in Rational Rhapsody

Troubleshooting


Problem

Attempts to generate or regenerate does not generate new code or report errors in IBM Rational Rhapsody.

Symptom

The following message is displayed but no new source code is generated:

Code Generation Done
0  Error(s), 0  Warning(s), 0  Message(s)

Cause

When code generation was working in the past and you suddenly see that no new code is generated, then the reason can be the existence of the package CGSimplifiedModelPackage.

This package is automatically created by the code generator and for internal usage only. By default it is hidden by the property <C or CPP>_CG::Configuration::ShowCgSimplifiedModelPackage.

Code generation fails when another not automatically created package with the same name CGSimplifiedModelPackage exists in your model.

Reasons can be:

  • Someone manually created or renamed a package to CGSimplifiedModelPackage.
  • The package was imported by Add to Model.
  • The package was added to configuration management and checked out to your model.

Diagnosing The Problem

Check the model if a manual added or created package with the name CGSimplifiedModelPackage exists.

Resolving The Problem

To resolve the problem you must delete the package and regenerate the code.

If the package does not exist or after deleting the package you still do not get code you should contact Rational Client Support for further assistance.

[{"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":"7.4;7.4.0.1;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;8.0;8.0.1;8.0.2;8.0.3","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022

UID

swg21646462