Generating code for packages

You can generate code for a package and all its classes, or generate code for selected classes within a package.

About this task

IBM® Engineering Systems Design Rhapsody® generates code for a package only if it contains meaningful information, such as instances, types, and functions. This streamlines the code generation process by preventing generation of unnecessary package files.

To modify this behavior, use the CG::Package::GeneratePackageCode property. See the definition provided for the property on the applicable Properties tab of the Features window.

To remove existing package files that do not contain meaningful information, select Code > Clean Redundant Source Files.