Book a Demo

Author Topic: Setting a stereotype icon in a MDG Technology?  (Read 4579 times)

Mesple

  • EA User
  • **
  • Posts: 30
  • Karma: +0/-0
    • View Profile
Setting a stereotype icon in a MDG Technology?
« on: June 09, 2015, 01:41:18 am »
Hi all,

I would like to have a stereotype icon for any "stereotype" element in my MDG techno but I don't know what I have to do.
I found the solution to set a toolbox icon (by using a toolbox profile) and a project browser icon but not for a diagram.

If I set the stereotype of a class to "Change", the icon stereotype of a "Change" is displayed in the diagram, in the right top corner of the class.

I'd like to have the same feature for any stereotype element of my MDG.

Thanks a lot for your responses

Olivier

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Setting a stereotype icon in a MDG Technology?
« Reply #1 on: June 09, 2015, 07:30:38 am »
You need to write a shape script with a decoration pattern for each of them.

q.

Mesple

  • EA User
  • **
  • Posts: 30
  • Karma: +0/-0
    • View Profile
Re: Setting a stereotype icon in a MDG Technology?
« Reply #2 on: June 09, 2015, 08:16:40 pm »
Thanks for your help.

It works  :)
See below my shape script.

Olivier
______________________________________________

shape main{
      RoundRect(0,0,100,100,8,8);
      addsubshape("namecompartment", 100, 100);
      shape namecompartment
      {
         h_align = "center";
         editablefield = "name";
         println("#name#");
      }
}
decoration Activity{
 orientation="NE";
 image("activity.png",0,0,100,100);
}
________________________________