Author Topic: Default Colour of an Element resp. Shape  (Read 4707 times)

Viking

  • EA User
  • **
  • Posts: 453
  • Karma: +2/-2
    • View Profile
Default Colour of an Element resp. Shape
« on: February 21, 2017, 04:44:15 am »
Hello,

I am confused where the ArchiMate BusinessProcess gets its color from. It is not set in the corresponding shape script. The standard color is set to another color.

(1) Could somebody explain to me, where the default color for the ArchiMate BusinessProcess shape script is definded resp. where the shape scripts retrieves the color from?

I have implemented my own shaped scripts which uses an exact copy of the ArchiMate BusinessProcess shape script. When I assign this script to an element and the copied script gets executed, it uses a different color than the original one.

(2) Could somebody explain to me, why the exact copy of a script uses a different color than the original one?

Many thanks in advance, V.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Default Colour of an Element resp. Shape
« Reply #1 on: February 21, 2017, 07:38:31 am »
Geert asked the same question a few days ago. IIRC the color comes from the MDG where you have to save a profile from a diagram with styles set. EA keeps those styles and applies them when the stereotype is instantiated.

q.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Default Colour of an Element resp. Shape
« Reply #2 on: February 21, 2017, 10:58:36 am »
Geert asked the same question a few days ago. IIRC the color comes from the MDG where you have to save a profile from a diagram with styles set. EA keeps those styles and applies them when the stereotype is instantiated.

q.
It is the "bgcolor" attribute in the resulting MDG file.  The value is the decimal equivalent of the RGB colour specification.

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

Graham_Moir

  • EA User
  • **
  • Posts: 749
  • Karma: +10/-15
    • View Profile
Re: Default Colour of an Element resp. Shape
« Reply #3 on: February 21, 2017, 09:01:19 pm »
I think this can also be overridden by putting the element on a diagram in a template package and changing its fill colour.   All new elements of that type that are created should get the template colour specified.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller