Book a Demo

Author Topic: Setting icon for all elements based on a Stereotype  (Read 7835 times)

shimon

  • EA User
  • **
  • Posts: 172
  • Karma: +6/-0
    • View Profile
Setting icon for all elements based on a Stereotype
« on: January 01, 2016, 02:14:37 am »
Hi,
When the architects in our project presented high level architecture, the management asked for each element to be discernable to which business area it belonged.
I tried using a image that was used in a different tool, but realized that if I used an image the operations and attributes would not show unless I explicitly added that into my script.

As I was browsing through the help I came across the decorator method that added an icon to the Stereotyped element.

I used a freeware portableApps program to compress my image into 16 x 16 pixels, imported the images into the project and used the simple code presented in the EA help and was able to add the icon to any element with the stereotype.

The only issue I now have is that the icon doesn't show on sequence diagrams.

In the EA example there is a package called Modeling in Color. Any classes from this package used in sequence diagrams has the same color as the class, but there is no hint as to how this is achieved.

The classes don't have any stereotype, but yet there is something about them that makes objects created from them to have the same color. Any clue as how to achieve this?

I really would like to make objects based on elements that have a specific stereotype have the icon of the stereotype, but I think the first step is figuring how to change the objects based on a certain type of class.

Thanks in advance for any help, and enjoy your holiday.

Shimon J from the Holy Land




Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Setting icon for all elements based on a Stereotype
« Reply #1 on: January 01, 2016, 06:07:06 am »
Shimon,

Look into UML profiles and shape scripts.

I think shapescripts don't work on sequence diagrams though.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Setting icon for all elements based on a Stereotype
« Reply #2 on: January 01, 2016, 06:09:12 am »
Decorations are shown on SDs.

q.