How to Install a TRIMM MDG under Enterprise Architect (from Sparx Systems)

There are 3 ways you can install an Model Driven Generation (MDG) package, like TRIMM WS, TRIMM Java, TRIMM JPA, TRIMM Hibernate, etc., under Enterprise Architect.

Note: Always remember to restart all instances of EA after having installed the MDG files.

Simple file copy

The simplest way is to copy the XML file containing the MDG, in this example TigerTeam TrimmWS.xml, to the folder C:\Program Files (x86)\Sparx Systems\EA\MDGTechnologies, but that has its limitations. It will work fine if you are the only one using the MDG. If you want to distribute it to a larger number of users, it can become a hassle to make sure that everybody has the same version. Also you will mix the TRIMM MDG’s with the ones provided with EA and risk loosing it when you upgrade to a newer version of EA.

If the MDG contains EMF files, they must be copied to the same folder. Wizards must be placed in the "C:\Program Files (x86)\Sparx Systems\EA\ModelPatterns" folder.

To uninstall the MDG files, they have to be manually deleted from the respective folders.

Import locally via EA

Another way to import an MDG is by using the MDG Technology Import functionality of EA. Using that, EA will place the imported MDG under your Roaming User account making it accessible to you if you log-in on another machine on the same network under Active Directory control. The MDG will still be local to you, but available to you from other machines.

To use the MDG importer you have to:

  1. Select Tools -> MDG Technology Import.
    You will be presented with this dialog:

    IN this example we have already selected TigerTeam TrimmWS.xml file which contains the TRIMM WS MDG.

  2. Press OK and EA will ask you to restart . This is important because the MDG will not be loaded until all instances of EA has been shutdown and start EA again. The dialog looks like this:

    The “Trimm WS” MDG is now imported and ready for use.

Note: EA will place the MDG’s imported using this method on C\:Users\<your user>\AppData\Roaming\Sparx Systems\EA\MDGTechnologies. EMF files or Diagram Wizards, must be manually copied to the same folder. To uninstall the MDG you will have to manually delete its files.

Using a shared directory

A more elegant solution is to use EA’s built-in MDG Technology organizer to include the TRIMM MDG. By doing so you can place the MDG file anywhere you like, even on a shared folder, which makes distribution a lot easier. To do so you need to:

  1. Select Settings -> MDG Technologies...
    You will be presented with this dialog:

    As you can see, all the available MDG’s are listed here, but TRIMM WS is missing. To add our MDG:
  2. Press Advanced.. and on the next dialog press Add and Add Path... Select the directory where your MDG file(s) are located and press OK. In this example our TRIMM MDG’s were located on the “Z:” drive as you can see here:


    Note: You will only see the paths and not the files, so don’t worry. Just press OK. EA will tell you to restart and you have to in order to make the MDG appear on the list, as shown below:

EMF files or Diagram Wizards, must be copied to the same folder as well. To uninstall the MDG you will have to manually delete its files.

The MDG is now ready to use 🙂