Author Topic: How to get the Archimate yellow in extended stereotypes  (Read 1122 times)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 7742
  • Karma: +165/-21
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
How to get the Archimate yellow in extended stereotypes
« on: February 09, 2017, 11:56:01 pm »
I'm extending one of the yellow stereotypes of Archimate 2 (Business Object) and that all works out fine, except for the fact that my new stereotype has the standard fill color (beige) while original Archimate element is yellow.
I'm wondering how the Archimate elements get their yellow color.
It's not defined in their shapescript (I checked) so it must be somewhere else, but I have to clue where.

I can ofcourse add the yellow fillcolor in the shapescript, but I would rather do it like Archimate does.

Anyone here who knows the secret sauce to make this work?

Geert

PS. I tried drawParentShape() but that didn't make any difference (it must have done that already because it otherwise looks exactly like an Archimate Business Object, except for the color that is)

qwerty

  • EA Guru
  • *****
  • Posts: 8967
  • Karma: +136/-123
  • I'm no guru at all
    • View Profile
Re: How to get the Archimate yellow in extended stereotypes
« Reply #1 on: February 10, 2017, 03:17:32 am »
If you press F4 you see that the default color for the element is changed. So that's done by some add-in along with element creation.

q.

Simon M

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 6200
  • Karma: +47/-5
    • View Profile
Re: How to get the Archimate yellow in extended stereotypes
« Reply #2 on: February 10, 2017, 08:55:45 am »
The colour is assigned to the stereotype. See http://sparxsystems.com/enterprise_architect_user_guide/13.0/modeling_tools/set_default_appearance.html

End up looking like this:
          <Stereotype name="ArchiMate_Contract" metatype="Contract" notes="" bgcolor="12648447" fontcolor="-1" bordercolor="-1" borderwidth="1" hideicon="0" strictness="profile">

(I didn't try to find a yellow stereotype, but you get the idea)
Simon

support@sparxsystems.com

Simon M

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 6200
  • Karma: +47/-5
    • View Profile
Re: How to get the Archimate yellow in extended stereotypes
« Reply #3 on: February 10, 2017, 09:07:24 am »
If you press F4 you see that the default color for the element is changed. So that's done by some add-in along with element creation.
I'm afraid that's incorrect. If you press F4 you'll see that the default colour is still set to default. This is just EA's handling of stereotype colours although it wasn't that long ago that it did set the default colour on creation.
Simon

support@sparxsystems.com

qwerty

  • EA Guru
  • *****
  • Posts: 8967
  • Karma: +136/-123
  • I'm no guru at all
    • View Profile
Re: How to get the Archimate yellow in extended stereotypes
« Reply #4 on: February 10, 2017, 09:16:19 am »
I'm still on V12.

q.

Simon M

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 6200
  • Karma: +47/-5
    • View Profile
Re: How to get the Archimate yellow in extended stereotypes
« Reply #5 on: February 10, 2017, 11:07:56 am »
I'm still on V12.
That's okay. None of us are perfect.  :P (I thought the behavior was much older than that)

Still there were no add-ins involved. Just what EA did with stereotype colours.
Simon

support@sparxsystems.com

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 7742
  • Karma: +165/-21
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: How to get the Archimate yellow in extended stereotypes
« Reply #6 on: February 10, 2017, 08:55:12 pm »
The colour is assigned to the stereotype. See http://sparxsystems.com/enterprise_architect_user_guide/13.0/modeling_tools/set_default_appearance.html

End up looking like this:
          <Stereotype name="ArchiMate_Contract" metatype="Contract" notes="" bgcolor="12648447" fontcolor="-1" bordercolor="-1" borderwidth="1" hideicon="0" strictness="profile">

(I didn't try to find a yellow stereotype, but you get the idea)

Ok thanks, I'll try that.

By the way, I noticed that unchecking the checkbox "Color and Appearance" when saving the profile is what makes the difference whether or not the user can change the color of a stereotyped element. If checked then the color cannot be changed by the user, if unchecked the color can be changed.

I have yet to discover if my default color will be saved in the UML profile if I leave the checkbox unchecked.

Geert

Simon M

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 6200
  • Karma: +47/-5
    • View Profile
Re: How to get the Archimate yellow in extended stereotypes
« Reply #7 on: February 13, 2017, 09:24:09 am »
You need to check it to export a colour.

A user should always be able to change the colour of their stereotyped elements. Perhaps you can explain more what you mean when you say they can't.
Simon

support@sparxsystems.com

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 7742
  • Karma: +165/-21
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: How to get the Archimate yellow in extended stereotypes
« Reply #8 on: February 13, 2017, 05:49:09 pm »
You need to check it to export a colour.

A user should always be able to change the colour of their stereotyped elements. Perhaps you can explain more what you mean when you say they can't.

In that case I might have stumbled upon a bug.
The stereotyped objects don't react to changing the background color if I check the "Color and appearance" when saving my UML profile, they just keep their original color no matter what I try.

I'll see if I can come up with a reproducible sample. I currently have no access to the model of that particular client and I'm not going back there for a couple of weeks.

Geert

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 5882
  • Karma: +71/-78
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: How to get the Archimate yellow in extended stereotypes
« Reply #9 on: February 13, 2017, 06:21:49 pm »
In that case I might have stumbled upon a bug.
Don't we all?    ;)

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!