Book a Demo

Author Topic: Globally change color of diagram elements  (Read 14047 times)

Rakesh Kumar

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Globally change color of diagram elements
« on: November 05, 2010, 06:56:38 am »
I have been creating a EA file. I have lots of use case diagrams, activity diagrams, sequence diagrams etc. While creating them I didn't chance their default background (or so to say, fill color) color. Now, I would like to change them all together. For all "Decision box" in Activity Diagram I need one color, for all use case in use case diagram I need different color. Is there any simple way to achieve this?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Globally change color of diagram elements
« Reply #1 on: November 05, 2010, 05:19:52 pm »
This is only possible for new elements (using the template package), or for stereotyped elements (using "Override appearance" in the Stereotype definition)

If you want to change the appearance of all existing elements of a certain type you'll have to create a little script to do so.

Geert

Rakesh Kumar

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Globally change color of diagram elements
« Reply #2 on: November 09, 2010, 02:36:33 am »
Thank you Geert for your response. Could you please explain what is the script that I could write and how to use it to apply color to existing elements?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Globally change color of diagram elements
« Reply #3 on: November 09, 2010, 06:05:46 pm »
Rakesh,

I can't really explain that just like that.
I suggest you start reading here: http://www.sparxsystems.com/enterprise_architect_user_guide/8.0/automation_and_scripts/automation_interface.html, look at the examples, and come back with specific questions or issues you run into.

Geert

Peter Doomen

  • EA User
  • **
  • Posts: 66
  • Karma: +0/-0
    • View Profile
Re: Globally change color of diagram elements
« Reply #4 on: December 20, 2010, 08:33:29 pm »
I had exactly the same need. I solved it with a Perl script provided by Thomas Kilian, the person who also wrote the EA Perl addin. Works perfectly, look it up in the community resources:

http://community.sparxsystems.com/resources/scripts/extending-ea-perl