Book a Demo

Author Topic: Sparx EA Script Editor and Run Script icon  (Read 4328 times)

ggandhi

  • EA User
  • **
  • Posts: 28
  • Karma: +0/-0
    • View Profile
Sparx EA Script Editor and Run Script icon
« on: August 27, 2013, 09:11:17 pm »
Since my last post Inherited Tagged Values, I have confirmation from Sparx Support that I must use a script. With my background in VBScript and Javascript, it should not be a problem for me to write my own script to extract inherited tagged values from diagram elements, but I am having difficulty in understanding the Sparx EA Script Editor.

My plan is to
1. create a Javascript script named 'JS_Inherited_Tags'
2. catch output from that script in the RTF Fragment between custom tags
 

In order to understand how to develop and test a Javascript script, I have used Tools, Scripting > Scripts: double-click on local script name. I should be able to run the script and see the output in the Script tab of the System Output window.

Regardless of which local script name I select, the 'Run Script' icon (at the top of the script edit window) is not enabled (greyed out), so I cannot run any script to see the output in the Script tab of the System Output window. >:(

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Sparx EA Script Editor and Run Script icon
« Reply #1 on: August 28, 2013, 03:50:53 am »
Just a guess, but which license edition do you use? Not all of them support all features, but I don't know whether scripting is limited in any of them.

q.

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Sparx EA Script Editor and Run Script icon
« Reply #2 on: August 28, 2013, 10:14:21 am »
Just to answer qwerty's point - quote from the Scripting topic in the Help:

"This facility is available in the Corporate, Business and Software Engineering, Systems Engineering and Ultimate editions."

Can you run the script from the context menu? (Right click on a script name and select the Run Script menu option.)
« Last Edit: August 28, 2013, 10:21:18 am by RoyC »
Best Regards, Roy