Book a Demo

Author Topic: autocolorize Elements (e.g. subsystem) by Status  (Read 5887 times)

DreiBaer

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
autocolorize Elements (e.g. subsystem) by Status
« on: July 10, 2019, 08:24:30 pm »
Hello,

I have tried to colorize some elements on my diagramms depending on the status of the element. I have configured the colors, but for my elements of type subsystem the only color change is within the shade of the element.
Is there a way to change this to the background of the element?


Best Regards
DreiBaer
« Last Edit: July 12, 2019, 05:51:39 am by DreiBaer »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: autocolorize Elements (e.g. subsystem) by Status
« Reply #1 on: July 10, 2019, 08:58:16 pm »
Not directly. You'd need to stereotype them and apply a shapescript.

q.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: autocolorize Elements (e.g. subsystem) by Status
« Reply #2 on: July 11, 2019, 09:01:23 am »
Or use a Diagram Legend with auto-colouring
The Sparx Team
[email protected]

Sunshine

  • EA Practitioner
  • ***
  • Posts: 1353
  • Karma: +121/-10
  • Its the results that count
    • View Profile
Re: autocolorize Elements (e.g. subsystem) by Status
« Reply #3 on: July 11, 2019, 12:54:54 pm »
Or use a Diagram Legend with auto-colouring
Wot he said :)
Happy to help
:)

DreiBaer

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: autocolorize Elements (e.g. subsystem) by Status
« Reply #4 on: July 11, 2019, 06:19:19 pm »
qwerty said something different. He meant to create a user defined stereotypes and write a shape script.
The usage of the legend depends on predefined status of EA-Elements, isn't it.

DreiBaer

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: autocolorize Elements (e.g. subsystem) by Status
« Reply #5 on: July 11, 2019, 07:15:16 pm »
@qwerty
Do I have to define a new stereotype?

Isn't it a possibility to create a TaggedValue "status" using an enumeration called "status". And depending on the assigned enumeration values the color of my "subsystem" will change. Do you think this way is possible?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: autocolorize Elements (e.g. subsystem) by Status
« Reply #6 on: July 11, 2019, 08:45:13 pm »
No. Any visual representation is done by a) rendering an alternate image, b) looking at the stereotype and eventually rendering via the connected method (shape script, image) or using c) the native diagram rendering. The latter will only color the shadow for all elements except the requirement (and its siblings) which have a color bar.

I'm not using that legend feature for various reasons (I can't explain in short here).

q.

DreiBaer

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: autocolorize Elements (e.g. subsystem) by Status
« Reply #7 on: July 11, 2019, 10:55:39 pm »
everything is explained here: https://www.youtube.com/watch?v=i3B-r3DFAOE

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: autocolorize Elements (e.g. subsystem) by Status
« Reply #8 on: July 11, 2019, 11:16:34 pm »
Not going to watch a video that seems to explain shape script. So, what is the point?

q.

DreiBaer

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: autocolorize Elements (e.g. subsystem) by Status
« Reply #9 on: July 12, 2019, 05:51:04 am »
Sorry you're right: First you have to watch this video:
https://www.sparxsystems.com/resources/demos/profile-helpers/profile-helpers.htm

And after that you can do something with the shape script:
https://www.youtube.com/watch?v=i3B-r3DFAOE

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: autocolorize Elements (e.g. subsystem) by Status
« Reply #10 on: July 12, 2019, 06:34:26 am »
Uuuuuh. That first one is FLASH, ahaaaa! :-(

(Just a few minutes ago it struck me that EAP are the initials of Edgar Alan Poe - "The Pit and the Pendulum", "The Raven", etc.. This can't be a coincidence!)

q.

Mauricio Moya (Arquesoft)

  • EA User
  • **
  • Posts: 344
  • Karma: +8/-4
  • EA Consulting and development in Spanish
    • View Profile
    • Arquehub Azure Module
Re: autocolorize Elements (e.g. subsystem) by Status
« Reply #11 on: July 12, 2019, 06:50:53 am »
Here a short video about how to use the Legend with auto-coloring https://www.youtube.com/watch?v=Mvwml2glvTA&t=1s

DreiBaer

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: autocolorize Elements (e.g. subsystem) by Status
« Reply #12 on: July 12, 2019, 06:52:10 am »
for what stands the P in EAP

for me: EA --> Enterprise Architect

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: autocolorize Elements (e.g. subsystem) by Status
« Reply #13 on: July 12, 2019, 08:41:19 am »
P = Project, but Edgar will Nevermore go out of my head!

q.