Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: netizensmith on July 09, 2025, 11:11:40 pm
-
Hi,
I have a stereotype in a profile and I want to display a Green Tick decoration on it. I have this shape script:
decoration GreenTick
{
image("GreenTick",0,0,15,15);
}
I have a 16x16 PNG in the Image Manager and it is named "GreenTick".
The preview in the Shape Editor show nothing.
I believe I've followed the instructions correctly but is there something I've missed?
Thanks
-
If you don't give your decoration an orientation, EA won't know where to show it.
From the examples in the manual:
decoration mail
{
orientation= "NE";
image ("icon image", 0, 0, 100, 100);
// "icon image" being the name of the 16x16 image which is loaded into the Image Manager
}
Geert