Book a Demo

Author Topic: highlighting a variant  (Read 5654 times)

ngong

  • EA User
  • **
  • Posts: 275
  • Karma: +2/-2
    • View Profile
highlighting a variant
« on: June 08, 2021, 12:40:29 am »
I was looking around Shape Scripts in order to find how I can conditionally highlight elements belonging to a certain variant of my architecture. Could not find it immedately.
Therefore this question:

In a tag (introduced by a stereotype) there I have variant values, e.g. V1, V2, V3, ALL.
If I select - somehow interactivily - a certain system Variant (other than ALL) on the diagram I only what to see or highlight those elements having ALL or the selected variant. E.g. if I select V1, all elements shall be highlited having V1 and ALL in that Variant tag. All elements having only V2 or V3 are not shown or grey out.

Is there a Shape Script example (or any other method) to do this?
I am also interested in similar concepts.

Thank you in advance for helping.
Rolf

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: highlighting a variant
« Reply #1 on: June 08, 2021, 03:19:43 pm »
No, you can't do that with shapescripts. They are executed the moment you open a diagram, and that's it.

You could do something similar in an add-in, reacting to the select element event.

Geert

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: highlighting a variant
« Reply #2 on: June 08, 2021, 04:01:28 pm »
Hi Rolf,

maybe AutoColour Legends may be of use?  They can render the items differently depending upon the Tag Value.

Might work...

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

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: highlighting a variant
« Reply #3 on: June 08, 2021, 04:08:45 pm »
Hi Rolf,

maybe AutoColour Legends may be of use?  They can render the items differently depending upon the Tag Value.

Might work...

Paolo
Paolo,

I think Rolf wants to highlight elements with the same value in a tagged value.
Legends are static and don't react to selecting elements in the diagram.

Unless I misunderstood the question of course

Geert

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: highlighting a variant
« Reply #4 on: June 08, 2021, 09:15:47 pm »
Hi Rolf,

maybe AutoColour Legends may be of use?  They can render the items differently depending upon the Tag Value.

Might work...

Paolo
Paolo,

I think Rolf wants to highlight elements with the same value in a tagged value.
Legends are static and don't react to selecting elements in the diagram.

Unless I misunderstood the question of course

Geert
I don't think you misunderstood and my potential solution is second or third best at most, still, it's worth investigating.

Notwithstanding the static nature of the Legend, as I understand Rolf's UC, the values are statics also.  He just wants to highlight the ones that are the same as the ones he selects.

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