Author Topic: Create Model Template MDG  (Read 2771 times)

Tehila1

  • EA User
  • **
  • Posts: 256
  • Karma: +0/-0
    • View Profile
Create Model Template MDG
« on: May 03, 2015, 11:34:48 pm »
I would like to enable creating a model from a custom template.
I followed the instructions here: http://www.sparxsystems.com/enterprise_architect_user_guide/8.0/modeling_languages/model_templates2.html

As I understand I have to :
1. create a model, export it to XMI.
2. Generate an empty MDG technology.
3. Manually add code to the MTS file.

What is missing? Why the new template is not available from the new model from template wizard?

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Create Model Template MDG
« Reply #1 on: May 04, 2015, 09:18:21 am »
What release of EA are you using - release 8.0?
Best Regards, Roy

Sunshine

  • EA Practitioner
  • ***
  • Posts: 1320
  • Karma: +121/-10
  • Its the results that count
    • View Profile
Re: Create Model Template MDG
« Reply #2 on: May 04, 2015, 01:00:09 pm »
For Sparx EA to see your technology file, you'll need to copy the MDG technology file to C:\Program Files (x86)\Sparx Systems\EA\MDGTechnologies
or
point Sparx EA to the place you have created your technology file
For V12
Menu Extensions>MDG Technologies...
In MDG Dialog click on advanced button at bottom left
Add path to the folder where you created the MDG technology file.
Hope that helps
Happy to help
:)

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Create Model Template MDG
« Reply #3 on: May 04, 2015, 05:34:11 pm »
Point 2: You must include, ie refer to, the template XMI file in your MDG Technology MTS file, but you don't need to create a separate, otherwise empty, MDG Technology just for the template. If you have a working MDG Technology you can add the template reference to its MTS file.

The file reference ("location") must be resolvable from the MTS file directory, so check that the relative path is correct, or use an absolute path.

/U
My theories are always correct, just apply them to the right reality.