Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Ondrej Kolenaty on April 20, 2012, 08:02:31 pm

Title: Running EA scripts via automation interface
Post 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.
Title: Re: Running EA scripts via automation interface
Post by: Georg on October 02, 2016, 01:19:35 am
Hi,

years later, I have the same question. Is it possible, to run a EA script via automation interface?

Thank you, Georg
Title: Re: Running EA scripts via automation interface
Post by: Geert Bellekens on October 02, 2016, 04:48:25 am
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
Title: Re: Running EA scripts via automation interface
Post by: Bjorn S on December 22, 2016, 09:57:34 pm
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
Title: Re: Running EA scripts via automation interface
Post by: Geert Bellekens on December 23, 2016, 04:28:42 am
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