Author Topic: COM Addin using Python  (Read 2114 times)

vrieg

  • EA User
  • **
  • Posts: 51
  • Karma: +0/-0
    • View Profile
COM Addin using Python
« 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.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: COM Addin using Python
« Reply #1 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

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: COM Addin using Python
« Reply #2 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.