Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: ggandhi on August 27, 2013, 09:11:17 pm

Title: Sparx EA Script Editor and Run Script icon
Post by: ggandhi 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. >:(
Title: Re: Sparx EA Script Editor and Run Script icon
Post by: qwerty 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.
Title: Re: Sparx EA Script Editor and Run Script icon
Post by: RoyC 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.)