Book a Demo

Author Topic: UML Profile to change colour on a stereotype  (Read 6501 times)

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
UML Profile to change colour on a stereotype
« on: December 04, 2015, 10:37:14 pm »
Hi,

I'm creating an UML Profile to define a custom colour scheme for ArchiMate 2.0 built-in MDG.

I created my stereotypes extending the MetaClass e.g. Class, and generalizing the ArchiMate Stereotype.

First attempt, I changed the default fill colour -> the colour is applied but I lose the rendering/element drawing defined in ArchiMate.
Second attempt, I defined a ShapeScript DrawNativeShape(); and left the default colour -> I get a mixed rendering with the chosen colour (ArchiMate rendering is altered).
Third attempt, I used DrawParentShape and SetFillColour in my shapescript -> the element is colourless (I also tried the default colour).

I'm out of options...
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: UML Profile to change colour on a stereotype
« Reply #1 on: December 04, 2015, 10:40:45 pm »
Try DrawParentShape. Just a guess.

q.

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: UML Profile to change colour on a stereotype
« Reply #2 on: December 04, 2015, 11:14:15 pm »
I tried this as my 3rd attempt ; this option doesn't let me set a custom colour, doesn't use the main stereotype colour, and doesn't let users change the element's colour.

I actually found a solution to my issue: it was due to the fact that my stereotypes had the exact same name as the main stereotypes.
Having renamed my stereotypes and set the Default Colour fixed it  :)



« Last Edit: December 04, 2015, 11:14:52 pm by gfuk »
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: UML Profile to change colour on a stereotype
« Reply #3 on: December 04, 2015, 11:44:06 pm »
I guess you could get by with choosing a different metatype. Again just a guess.

q.

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: UML Profile to change colour on a stereotype
« Reply #4 on: December 05, 2015, 01:13:25 am »
Good guess ;)
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: UML Profile to change colour on a stereotype
« Reply #5 on: December 05, 2015, 01:48:14 am »
I found that icons are directly related to metatypes. So that lead me to this assumption :)

q.