Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Alberto Favetta on July 09, 2013, 12:40:51 am
-
Hello,
I created a VBScript code to do some automation stuff. I would like to add a simple toolbar button to run that script without going through Tools->scripting->select script->run
Is there a way to accomplish this?
Cheers,
Alberto
-
Hello Alberto,
you can't assign a script to a toolbar button.
You can add a script to the context menu. Then Right Click, Scripts, Scriptname.
To add a script to the context menu:
- Create a Script Group of Type Browser, Diagram,..
- Drag the script into this Script group
- The script appears in the context menu according to the script group
(Browser, Diagram,..)
If you want your script to work on browser and on diagram you have to duplicat the script and but it in Browser Group and in Diagram Group
Helmut
-
Hello Alberto,
To add a script to the context menu:
- Create a Script Group of Type Browser, Diagram,..
- Drag the script into this Script group
- The script appears in the context menu according to the script group
(Browser, Diagram,..)
Thank you very much, that did the trick nicely :)
Alberto