Transform Elements

Return to Introduction  Previous page  Next page

There are two modes for initiating a Model Transformation, each of which can be started in two ways.

·To transform selected elements on a diagram, either:
·Select  the Project | Model Transformations | Transform Selected Elements menu option, or
·From the context menu for the classes on the diagram, select the Transform Selected Element(s) option.
·To transform elements in the package currently selected in the Project Browser window, either:
·Select the Project | Model Transformations | Transform Current Package menu option, or
·From the context menu of the package in the Project Browser window, select the Transform Current Package option.

The Model Transformation dialog displays.

TransformElements

When the dialog displays, all elements are selected and all transformations previously performed from any of these classes are checked.

Field/Button

Description

Elements

Click on the individual Elements to be included in the transformation.

All

Selects all of the elements from the list to be included in the transformation.

None

Deselects all of the elements from the list.

Transformations

Enables you to select which transformations to perform and the package each of them should be transformed to.

Select Package [...]

Use the [...] button to select the package in which the transformed elements are being created.

Generate Code on result

Specifies whether or not to automatically generate code for transformed classes that target code languages. 

Automatically generating code helps boost productivity in development. With this option selected, the first time you transform to the selected class Enterprise Architect enables you to select a filename to generate to.  Subsequent transformations automatically generate any class with a filename set.

Perform Transformations on result

Specifies if transformations previously done on target classes should be automatically executed. See Chaining Transformations for more information.

Intermediary File

Specifies the filename of the intermediary file (if any).

Write Always

Select to write the intermediary file to disk.

Write Now

Generates the intermediary file but doesn't perform the transform.

Do Transform

Executes the transform command.