Transform Elements

When you perform a Model Transformation of elements of any kind, you can initiate the transformation either from a diagram or from a Package.

Access

Transform selected elements on a diagram:       Tools | Model Transformation (MDA) | Transform Selected Elements, or
On diagram | Class context menu | Advanced | Transform   (Ctrl+H)

Transform all elements in the Package currently selected in the Project Browser:

Tools | Model Transformation (MDA) | Transform Current Package, or
Project Browser package context menu | Advanced | Transform Package   (Ctrl+Shift+H)

Perform a Transformation

Field/Option/Button

Action

See also

Elements

Lists all of the individual elements selected in the diagram or held in the Package. Either:

Click on an element to include just that element in the transformation
Hold Ctrl and click on several separate elements to include them in the transformation, or
Hold Shift and click on the first and last elements in a block to include those elements in the transformation

 

 

All

Click on this button to select all of the elements in the list to include them in the transformation.

 

 

None

Click on this button to deselect all of the elements in the list.

 

 

Include child packages

(If you have selected to transform elements in a Package.)

Select this checkbox to include (in the Elements list and potentially in the transformation) elements from the child Packages of the selected Package.

 

 

Transformations

Select the checkbox against each type of transformation to perform. When you select a checkbox, the Browse Project dialog displays; locate and select the target Package into which to generate the transformed elements.

If you want to change a selected target Package, click on the (  ...  ) button to the right of the Package name and select the new Package from the dialog.

 

 

Generate Code on result

Select this checkbox to specify whether or not to automatically generate code for transformed Classes that target code languages.

If you select this option, the first time you transform to the Class the system prompts you to select a filename to generate code into; subsequent transformations automatically generate code to that filename.

 

 

Perform Transformations on result

 

Select the checkbox to automatically execute transformations previously done on the target Class or Classes.

Chaining Transformations

Intermediary File

If you want to capture the intermediary language file (for example, to debug it), either type in the file path and name or click on the browse button ( ... ) and locate and select the file.

 

 

Write Always

Select this checkbox to always write the intermediary file to disk.

Intermediary Language

Intermediary Language Debugging

 

Write Now

Click on this button to generate the intermediary file without performing the full transformation.

Do Transform

Click on this button to execute the transformation.

When the transformation is complete, the Model Transformation dialog closes.

 

 

Close

Click on this button to close the Model Transformation dialog without performing the transformation.

 

 

Notes

When the dialog displays, all elements are selected and all transformations previously performed from any of these Classes are checked
This procedure does not apply to the Sequence diagram/Communication diagram transformation, or the Communication diagram/Sequence diagram transformation
 

Learn more

Learning Center topics

(Alt+F1) | Enterprise Architect | Model Transformations | Transform | Transform Elements
(Alt+F1) | Enterprise Architect | Model Transformations | Transform | Transform Packages