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 | Right-click on Package | Add a Model using Wizard... (Ctrl+Shift+M)
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" icon = "34" 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