Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
Incorporate Model Templates
When a user creates a model within their project, they can choose the type of model to develop from a list of standard model templates presented through the Model Wizard. You can also develop custom model templates and add them to this list via your MDG Technology.
You edit the .MTS file directly, using whatever file browser you work with to locate and open the file.
Add custom model templates to MDG Technology
Create a Package that contains all sub-Packages, diagrams, elements, notes and information links that you want to provide in your model template.
See the EAExample.eap model for illustrations of what you might include, or create a model from a standard template and see what is generated.
As a model template, the Package would be self contained and not contain any dependencies or other links to elements outside the Package.
Export your Package to XMI.
|Export to XMI
Create a reference to the XMI file in the MTS file; open your MTS file in a text editor and copy and paste this <ModelTemplates> block at the top level inside the <MDG.Selections> block:
<Model name="Template Name"
description="This is the description."
icon = "34"
You can include as many <ModelTemplates> blocks in your MTS file as you have model templates.
The attributes within a <ModelTemplates> block have these meanings:
|Working with MTS Files
To allow multiple custom categories per technology, go to the <Documentation> row of the technology and add the attributes:
In the <ModelTemplates> block, each <Model> row will have an attribute groupName. The group name must be in categoryMappings.