Sparx Systems Forum

Enterprise Architect => Suggestions and Requests => Topic started by: Viking on February 21, 2017, 04:44:15 am

Title: Default Colour of an Element resp. Shape
Post by: Viking 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.
Title: Re: Default Colour of an Element resp. Shape
Post by: qwerty 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.
Title: Re: Default Colour of an Element resp. Shape
Post by: Paolo F Cantoni 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
Title: Re: Default Colour of an Element resp. Shape
Post by: Graham_Moir 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.
Title: Re: Default Colour of an Element resp. Shape
Post by: Geert Bellekens on February 21, 2017, 09:52:17 pm
See http://sparxsystems.com/forums/smf/index.php/topic,37866.msg236243.html#msg236243 (http://sparxsystems.com/forums/smf/index.php/topic,37866.msg236243.html#msg236243)

Geert