Breaking up code generation into chunks

When working with extremely large projects, you may encounter memory-related problems when trying to generate code for the entire model. To overcome such problems, you can use the [lang]_CG::Configuration::ClassesPerCGCall property to break up the code generation process into a number of distinct chunks.

Use the property to specify the maximum number of classes that Rhapsody® should include in a single code generation chunk. Beyond this number, the code generation action will be broken into a number of smaller code generation actions.

For example, if you specify 500 for the value of the property, then if your model has 501-1000 classes, Rhapsody will try to break the code generation action into two smaller code generation actions.

Note: While the property name includes the term "classes", this number also takes into account similar model elements, such as actors and files.