Python for Capella 1.4.0 is out

This version is compatible with Capella 7.0.1:

  • New diagram API: you can have a look at the sample scripts creating a new LAB diagram or the script copying an existing diagram and customizing its style. You can check the complete diagram API for more details.
    • Note: the API rely on the Sirius and GMF notation APIs but doesn’t expose them in the Python world
  • Python 3.12 compatibility
  • Sample scripts and core APIs have been split
  • An Acceleo generator can help you generate a Python for Capella API from any Ecore. This can be used to generate API for Capella addons that are not supported by Python for Capella.
    • Note: the generator can’t be installed inside of Capella but you can install it in a Modeling package and then import your Ecore

As always, it also includes the feedback I can get from you on this forum, many thanks to all of you.

You can find the release here and if you have any questions you can ask them in this forum.

3 Likes

Wow, excellent! Thanks Yvan.

Hi Yvan, is strictly compatible with 7.0.1 or even 7.0 is supported?

Hi,
I was not able to find the update site binary org.eclipse.python4capella.update.zip.

Am I missing something?

Hi,

The version is compatible with Capella 1.4.x if you use the update site archive ending with 1.4. The other archive can be installed on Capella 5.x to Capella 7.x including Capella 7.0.1.

And you are not missing anything, none of the update site archives have been attached to the release… I’ll fix that today.

1 Like

Both update site archives are online.

Python4Capella doesn’t seem to work for me in Capella 7.0.1. I used the update site `org.eclipse.python4capella.update.zip` (added from Archive) and it’s shown in Preferences as Enabled. Yet even after restarting, File>New does not contain any Python4Capella project. Does anyone else have this issue?

You need to use New>Other.... It will create two projects: Python4Capella and Python4CapellaSampleScripts.