You can use the C++ transformation to convert your UML
model to C++ code.
Before you apply the C++ transformation, you should
read the information available at .
In the Transformations/Configurations list,
click UML to C++, on the Transformation Description page,
click View Transformation Documentation.
To apply the C++ transformation:
- In the Model Explorer view,
select the model elements or model that you want to convert to C++
code.
Note: A model element that is contained within
another model element, such as a component or collaboration, will
not be transformed unless it is specifically selected.
- Right-click the selected model or model elements; then
complete one of the following steps:
- To run a new transformation configuration, click .
- To run an existing transformation configuration, click the
name of the transformation configuration.
- To create a new target C++ project, complete the following
steps:
- In the Run Transformation window,
click the Target tab.
- On the Target page, click New
Project or New Managed Project.
- In the New Project wizard, in
the Project name field, type a name.
- Click Finish.
- Select a target.
- Click Run.
The transformation generates C++ code files, which are displayed
in the Model Explorer view.