Incorporate Model Wizard Templates
When a user creates a model within their project, they can choose the type of model to develop from a range of system-supplied model templates presented through the Start Page 'Create from Pattern' tab (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 Wizard 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 needs to be self contained and not contain any dependencies or other links to elements outside the Package.
Export your Package to XML.
If you want your template to have supporting documentation displayed in the right-hand panel of the Model Wizard, create a .rtf file containing this documentation in the same directory location as the XML file. The .rtf file must also have the same filename as the XML file. It is recommended that you create the .rtf file within a Document Artifact element in the model, and then export the file (the 'Document-Edit > File > Save as (Export to File)' ribbon option) to the location of the Pattern XML file. This keeps the documentation within your development model.
|Export to XMI
Create a reference to the XML 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"
icon = "34"
You can include as many <Model> rows within the <ModelTemplates> block in your .mts file, one row for each model template.
The attributes within a <Model> block have these meanings:
|Working with MTS Files
Regenerate the MDG Technology using the edited MTS file.
To allow multiple custom categories per technology, go to the <Documentation> row of the MDG Technology file and add the attributes:
In the <ModelTemplates> block of the MDG Technology file, each <Model> row will have an attribute groupName. The group name must be in categoryMappings.