Creating trace relationships between UML source model elements and UML-to-C++ transformation output

Creating trace relationships enables you to use visual development tools to understand the relationships between source model elements and transformation output. This function is useful in large projects that might contain multiple models and transformation configurations. The transformation does not alter the source model.

To create a trace relationship between model elements and source code:

  1. In the Project Explorer view, right-click a transformation configuration file; then click Open.
  2. On the Common tab, click Create trace relationships.
  3. Click File > Save.
The next time that you run the transformation, in the generated header file or files, the transformation adds a unique identifier to the source code comments of each transformed element that supports the @generated tag. If necessary, the transformation also refactors the code to reflect the changes to the model.
Note: If you create a new transformation configuration, you can specify this information on the Common page of the New Transformation Configuration wizard.
Related concepts
Relationships between UML model elements and UML-to-C++ transformation output
Related tasks
Preventing UML-to-C++ transformations from creating relationships between UML model elements and transformation output
Replacing source model elements with shortcuts to UML-to-C++ transformation output
Related reference
Interpretation of UML model elements by UML-to-C++ transformations
Impact of model and source code changes on UML-to-C++ transformation output

Feedback