Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Mesple 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
-
You need to write a shape script with a decoration pattern for each of them.
q.
-
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);
}
________________________________