Author Topic: Communicating between addins? Can it be done ?  (Read 2016 times)

Ian Mitchell

  • EA User
  • **
  • Posts: 506
  • Karma: +22/-4
  • The eaDocX and Model Expert guy
    • View Profile
Communicating between addins? Can it be done ?
« 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.
Ian Mitchell, Designer, eaDocX


www.eaDocX.com
www.theartfulmodeller.com

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Communicating between addins? Can it be done ?
« Reply #1 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
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Communicating between addins? Can it be done ?
« Reply #2 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
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