Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Ondrej Kolenaty on April 20, 2012, 08:02:31 pm
-
Hello,
is there any way how to run scripts from model via automation interface?
Thank You.
-
Hi,
years later, I have the same question. Is it possible, to run a EA script via automation interface?
Thank you, Georg
-
No, but you can call script by yourself without the help of the API
See the open source tool EA-Matic (http://bellekens.com/ea-matic/) for which the code it kept on github (https://github.com/GeertBellekens/Enterprise-Architect-Toolpack/tree/master/EAScriptAddin)
Geert
-
I am not sure how I see how EA-Matic would help? Say I'm running a script (outside EA), that instantiates an OLE object to load the "EA.Repository"; how would EA-Matic then help with having my outside script running a script that is in the EA repository?
Thanks,
Bjorn
-
Bjorn,
EA-Matic does what you are trying to do: execute scripts that are stored in EA.
You can look at the code of EA-Matic to see how it's done, and then do it the same way.
Geert