Book a Demo

Author Topic: MDG - Assign default language to Class stereotype  (Read 3095 times)

altorion

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
MDG - Assign default language to Class stereotype
« on: November 17, 2011, 08:05:21 pm »
Hello to all.

I have created a Stereotype that extends the Class <<metaclass>>.
I have also created a Toolbox, default diagram, and a new language with Code Templates for my MDG.

I want that, when selecting that "Stereotype" from the Toolbox for creating a new element with that Stereotype applied, it has as the default Language the one I have created and defined the Code Templates.

I have seen, for example, that with the ArcGIS technology, if you create from its toolbox a new instance of a Polygon, the language assigned is "ArcGIS".

But I have been analyzing the XML file of that technology without finding how to achieve it.

Any ideas?

Thanks a lot!!

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: MDG - Assign default language to Class stereot
« Reply #1 on: November 18, 2011, 08:16:51 am »
I think you will need an add-in to do this. Look in the help for "EA_OnPostNewElement"...
The Sparx Team
[email protected]