Book a Demo

Author Topic: Integrate helper functions to EA  (Read 3331 times)

ngong

  • EA User
  • **
  • Posts: 275
  • Karma: +2/-2
    • View Profile
Integrate helper functions to EA
« on: April 02, 2022, 04:55:22 pm »
Currently, I have some Python scripts which access remote REST services deployed on a server hosting a MySQL EA repository. On the server the REST service accesses the EA repository as well as other project information in order to gather some analysis result. The result is stored locally on the client site in a text file.

The Python scripts offer some simple item list selection or file selection dialog to specify one or two parameters for the REST service.

Now, I got the request to start these scripts from within EA - or rewrite them as an EA extension. The analysis result shall be presented in a window which shall pop up from the start of a script.

As there are several options to go - and I am not experienced in any of them - I need some help with the decision how to achive this.

Rolf

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Integrate helper functions to EA
« Reply #1 on: April 02, 2022, 05:09:02 pm »
Your best option is probably to write a C# add-in.

You can then still choose to keep the python scripts, and execute them you add-in, or rewrite them in C#.
I would probably go for the latter.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Integrate helper functions to EA
« Reply #2 on: April 02, 2022, 08:31:59 pm »
Your best option is probably to write a C# add-in.

You can then still choose to keep the python scripts, and execute them you add-in, or rewrite them in C#.
I would probably go for the latter.

Geert
I've done the first and it's way more comfortable. Speed is no issue.

q.