Book a Demo

Author Topic: Is there an easy way to set element default color based on package?  (Read 3563 times)

Richard Freggi

  • EA User
  • **
  • Posts: 498
  • Karma: +18/-7
    • View Profile
I'd like to color-code elements appearing in diagrams based on their package (including super-package etc.).  Right now I'm creating a diagram, dragging all elements in package/subpackage in manually, then SHIFT-CTL-E and set default color.  Is there a way to avoid the hassle (without shapescript and such wizardry). Thanks!!!

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Is there an easy way to set element default color based on package?
« Reply #1 on: February 20, 2020, 10:16:00 pm »
I'd like to color-code elements appearing in diagrams based on their package (including super-package etc.).  Right now I'm creating a diagram, dragging all elements in package/subpackage in manually, then SHIFT-CTL-E and set default color.  Is there a way to avoid the hassle (without shapescript and such wizardry). Thanks!!!
We use the version field to determine which "branch" the element is in.  You could then set up an auto colour legend to trigger on the version value.  WE've never done that because our items are accumulated into standardised locations, but we could use that under some circumstances - such as present versus past or future state (each being a different branch).  You can set the version (or phase value) for the entire branch easily.

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