Running UML-to-C# transformations

You can run a transformation on an entire model or project, or on a subset of elements in a model or project to generate the output that you expect. You can run a transformation on the source that you specify in the transformation configuration, or you can override the specified source by selecting elements in the model or project and then choosing a transformation configuration to apply.

Before you begin

Before you can run a transformation, you must create a transformation configuration. When you apply a transformation configuration, an instance of the transformation is created and the transformation runs with the properties that the configuration defines.

About this task

There are four basic methods you can use to run a transformation:
  • Run a transformation from commands in the user interface
  • Run a transformation from the command line
  • Run a transformation using an Ant task
  • Run a transformation programmatically

If you select source elements in the model instead of using the transformation configuration, the source elements that you select override the source model or elements specified in the transformation configuration. The transformation configuration is not affected and the source that you specify on the Source and Target page of the transformation configuration editor or in the New Transformation Configuration wizard does not change.


Feedback