Book a Demo

Author Topic: mts files ModelTemplates section handling  (Read 4109 times)

PeterHeintz

  • EA Practitioner
  • ***
  • Posts: 1001
  • Karma: +59/-18
    • View Profile
mts files ModelTemplates section handling
« on: April 20, 2016, 11:46:54 pm »
I added im my MDG MTS file content as described here:

http://www.sparxsystems.com/enterprise_architect_user_guide/12.1/building_models/model_templates2.html

EA is adding later the attributes “default” and “filter” (see below)!
<Model name="Model" description="This is the default repository structure for system engineering." location="ModelTemplate.xml" default="" icon="34" filter=""/>

Does anyone know what these attributes are used for.
I am looking for a way to get my templates presented to the user, in a more specific section than “Other”.
Best regards,

Peter Heintz

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: mts files ModelTemplates section handling
« Reply #1 on: May 20, 2016, 06:57:33 am »
Not sure, those attributes have been there for as long as I can remember.
For the record, we have
Code: [Select]
<ModelTemplates>
<Model name="Generic document layouts" description="Use this model document template to create new document models."
location="Generic document layouts.xml"
default="yes"
icon="34"
filter="Document templates"/>
</ModelTemplates>

Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.

Glassboy

  • EA Practitioner
  • ***
  • Posts: 1367
  • Karma: +112/-75
    • View Profile
Re: mts files ModelTemplates section handling
« Reply #2 on: May 20, 2016, 08:17:22 am »
The documentation used to say

default:  Contains either yes to indicate that the model template is checked by default, or no to indicate the model template is un-checked by default.

filter:  If you have a large number of model templates, you can group them on the Select model(s) dialog by giving all the model templates in the same group the same filter name.  The filter name given appears in the Select from: list box in the Select Model(s) dialog.


PeterHeintz

  • EA Practitioner
  • ***
  • Posts: 1001
  • Karma: +59/-18
    • View Profile
Re: mts files ModelTemplates section handling
« Reply #3 on: May 20, 2016, 04:11:49 pm »
Thank you!
Best regards,

Peter Heintz