Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Ian Mitchell on July 29, 2022, 11:37:12 pm

Title: Communicating between addins? Can it be done ?
Post by: Ian Mitchell on July 29, 2022, 11:37:12 pm
Has anyone tried to make one addin talk to another?
I'm busy creating a new version of eaDocX and I want to et smarter about testing the backwards-compatibility by, for example, getting the old version to do something, then the new one version, and comparing the results.
But that means getting them to talk to each other.
Is this even possible?
And without doing un-natural acts like creating daemons which scan shared files for commands etc, which is usually unrealiable.
Title: Re: Communicating between addins? Can it be done ?
Post by: Paolo F Cantoni on July 30, 2022, 10:24:40 am
Hi Ian,


Are you using any automated testing at present?  In a couple of previous lives, I was a Testing Manager and employed automated testing to good effect.  Contact me privately and we can have a chat.


Paolo
Title: Re: Communicating between addins? Can it be done ?
Post by: Geert Bellekens on August 22, 2022, 05:59:01 pm
Ian,

If EA can communicate with your add-in, surely you can as well; in exactly the same way.

Instantiate the needed object since it's published over COM.

If you can afford direct references, you can also create a second application that imports your add-in project as a reference.
An example is my add-in tester application: https://github.com/GeertBellekens/Enterprise-Architect-Add-in-Framework/tree/master/EAAddinTester (https://github.com/GeertBellekens/Enterprise-Architect-Add-in-Framework/tree/master/EAAddinTester)
I use that for manual testing/debugging in a more controlled environment (I get to start up my own application instead of having to hook into EA)

Geert