Author Topic: Global variable accessible in Shape Scripts  (Read 3815 times)

adepreter

  • EA User
  • **
  • Posts: 187
  • Karma: +10/-9
    • View Profile
Global variable accessible in Shape Scripts
« on: December 01, 2015, 03:16:46 am »
I would like my Shape Scripts to print text in 1 among 3 different languages (English/Dutch/French) depending on the value of a global variable e.g. "Language". Note that a diagram stereotype is not global variable, it is particular to that diagram only.

Is there no other way than to write an add-in just to return a single global character "E/D/F"? :-/

Thanks
Alain

http://www.sparxsystems.com/enterprise_architect_user_guide/12/extending_uml_models/displaying_element_properties.html


qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Global variable accessible in Shape Scripts
« Reply #1 on: December 01, 2015, 04:01:54 am »
No. Except you add a tagged value to each of the elements.

q.