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. You can also develop custom model templates to add to this list via your MDG Technology.
Access Project Browser package context menu | Add | Add a New Model using Wizard...
Add custom model templates to MDG Technology
Step |
Action |
See also |
||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 |
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.
|
|||||||||||||||||||||
2 |
Export your package to XMI.
|
|||||||||||||||||||||
3 |
Create a reference to the XMI file in the MTS file; open your MTS file in a text editor and copy and paste the following <ModelTemplates> block at the top level inside the <MDG.Selections> block:
<ModelTemplates> <Model name="Template Name" description="This is the description." location="MyTemplatePackage.xml" default="yes" icon = "34" filter= "Filter Name" isFramework=false"/> </ModelTemplates>
You can include as many <ModelTemplates> blocks in your MTS file as you have model templates. The attributes within a <ModelTemplates> block have the following meanings:
|
Learn more