Export a UML Class Model from Enterprise Architect

This is an example of how to export a UML class model from Enterprise Architect, so that it can be read using TRIMM and thereby be used for code generation purposes.

For details about how to model a Class based Domain Model using Enterprise Architect see this guide.
For a tutorial on how to use the Enterprise Architect model export for code generation using TRIMM see this guide.

Export your EA model to XMI

To be able to use the Enterprise Architect (EA) model with TRIMM you first have to export it to a crossplatform format that TRIMM can read.
TRIMM supports Enterprise Architect XMI version 2.1 exports.

1 Right click model in the Project Browser

Right click the model view icon (the 2. icon from the top of the Project Browser tree view)
Select the Import/Export menu item and finally select Export package to XMI file…

Export model Step 1

Export model Step 1

2 Select a file name and location for the XMI file

Select the model folder within the folder where the Maven project was created in Step 1 (e.g. C:\TRIMM-examples\firstjpaproject\model)
and give the XMI file a name, e.g. model.xml

Select XMI file location and name

Select XMI file location and name

3 Export XMI file

In the Export Package to XMI dialog make sure that XMI 2.1 is selected and then press Export and finally press Close

Export XMI file

Export XMI file

< Back