Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: vrieg on April 21, 2023, 11:32:48 pm

Title: COM Addin using Python
Post by: vrieg on April 21, 2023, 11:32:48 pm
Hello,

we have developed some Addins for EA 15 and EA 16 in C# to automate basic modeling operations.
All of them are based on EA Api and COM module win32com.client.
Would something similar possible using python? We experienced that python is  broadly taught in universities and might therefore have several advantages.
Title: Re: COM Addin using Python
Post by: Geert Bellekens on April 22, 2023, 12:26:08 am
EA needs a dll in order to use an add-in.

If you can somehow create a COM compatible dll from python code, you should be able to get it working.

I have my doubts if that is feasible though. C#is also pretty widespread, and performs better.

What you can do is write external scripts in python. You don't need an add-in to use the API.

Geert
Title: Re: COM Addin using Python
Post by: qwerty on April 22, 2023, 01:09:23 am
I used to have a Cxx addin to call python. Just a bit of bootstraping and most of the code can come with Python. Sometimes the admin hell forbids the use of such addins....

q.