Applying Transformations During Generation

Transformation profiles can be used during model generation. Pre-generation transformations are applied to the source model, while post-generation transformations are applied to the target model.

During inter-model generation, it is impossible to execute both lists of transformations of the same transformation profile, because the current model is the source of generation but not the target as defined in the following example.



When you generate a model to the same type of model, you can execute both lists of transformations of the transformation profile provided you select the same extension in the source and in the target model.



  1. Select Tools > Generate Model to open the Model Generation Options dialog.
  2. Click the Details tab, and click the Enable Transformations button to display the Extensions, Pre-generation, and Post-generation tabs.
  3. Click the Extensions tab to select the extensions in which you have defined your transformations.
  4. Click the Pre-generation tab and select profiles and transformations to be applied before generation. If you deselect a profile checkbox, none of its transformations will be executed. You can drag and drop profiles to modify transformation execution order. During generation, transformations are executed in the following order:
    • The order of profiles in the pre and post generation pages

    • The order of transformations in the profile itself

    • The order in which objects are treated in the model, that is to say beginning at the model level and recursing into sub-packages



  5. Click the Post-generation tab and select profiles and transformations to be applied after generation.
  6. Click OK to begin the generation.