Hi,
I would like to move a PhysicalComponent in another place in the breakdown structure.
I Tried this script: GF = a defined PhysicalComponent
It moves the PC (GROUP) but not its part so that the corresponding PCBD diagram doesn’t take into account the “contained in” link:

how to move the parts as well as the PC?
regards
d
This is indeed not enough to move a Component. I searched how it was done in the drad and drop of Capella and found this method that can be used in your case. Note that it move the Part but also does other things, you probably want to have a look at the code. Since it’s the Capella behavior it should not be an issue.
You can call it like this in your script:
abServices = org.polarsys.capella.core.sirius.analysis.ABServices()
....
abServices.dndABComponent(GROUP.get_java_object(), GROUP.get_java_object().eContainer(), SYSTEM.get_java_object())