labs4capella / python4capella

Python for Capella
Eclipse Public License 2.0
53 stars 10 forks source link

Add methods to create new elements #45

Open Aurelien-Pin opened 3 years ago

Aurelien-Pin commented 3 years ago

Creation of new elements with simplified API should be performed in a similar way of what we can do in the Project Explorer. Meaning from a given element, we will be able to create sub-elements of the different type supported.

New elements will be created with default values. For example, a default name with increasing numbering will be provided like in Capella. Some specific elements will have a more advanced construct. For example, when creating a component, we need to create the part as well and link it to the component

For example, this is what we have from a SystemFunction in Capella:

Create_new