Hi,
I am working on the synthesis of my customized Physical Architecture Blank diagram programmatically by creating a view point using Capella studio.
Until now, I can create components and add them to the physical system and I can see them by expanding the .aird file using the project explorer. (see screen capture)
What I want to do now is to add them to the diagram editor view automatically without dragging and dropping them there.
I think to do so, we use the Diagramservices class as follows:
After the creation of the command that allow us to add the component to the diagram, We should execute it by giving the right parameters as follows:
Here I am bit confused because I need the right mappingName because this argument is used inside the method .getContainerMapping(diagram, mappingName) of the diagramservices class as follows:
which means that the mapping names are well known and must be respected in order to get the mapping.
So my question is : how can I get every component the exact name like “PAB_Actor” and where can I find them. For example the names of the component like Node PC, Physical Actor, Physical Function and exchanges between different component.
And for the “PAB_actor” actor component doesn’t exist any more in the capella new meta-model? What is the substitution?