Hello,
Last I remember, “Python 4 Capella” was implemented and maybe 1 or 2 updates. It was working like this:
set up:
Downloading from github the project + the python
installing it through the menu inside capella software
create project p4c then configure python
modify capella properties (dev)
Usage:
inside the p4c project, we woudl find sample script and be able to run them to experiment and even modify a bit.
If I remember correclty it would allow for adding a button on the drop menu (from right click) of some items, or perhaps allow you to add items in hierarchy of items available in the project (the left menu - tree of objects)
Can you tell me what is new after 2 years, both in term of set up, AND in term of capabitilies?
I checked sometimes and think I saw something about “buttons”? But really could not look into it more.
Thank you
(Edit: and if there is a dedicated page to follow regarding these updates)
A lot of work on stabilizing existing API as well as more API for the Capella core API. PVMT and requirement API have also been improved (see milestone 1.3.0). The tips and tricks section of the documentation has been added. There are examples on how you can contribute to the Capella GUI as well as how you can run scripts on resource changes.
A first step has been done to make Python for Capella more modular with relative import URI.
Probably other improvements that don’t come to my mind right now…
For the next release I plan on adding an Acceleo generator to generate a Python for Capella API from a meta-model (.ecore file). This way it will be possible to work with Capella addons not supported by Python for Capella (an example with the filtering addon) and also interact with other meta-models from the EMF ecosystem.
And as always Python for Capella is open to contributions if you have some improvements you would like to share we can discuss them on this forum or in the github project.