realthunder wrote: ↑Thu Dec 05, 2019 10:49 pm
If that's still not what you want, maybe you can provide an example file, and tell me which object you want to obtain given which object.
I'll try to describe with the model tree: I have an App::Part clled myPart in a document, that contains an LCS_0, a Body, and an LCS_1. I then have an assembly (it's an App::Part called Model) that has several LCS, and notably LCS_1 and LCS_2. I have inserted myPart twice into the assembly, the first one called myLink_1 and attached to LCS_1, and the second called myLink_2 and attached to LCS_2. Finallly, I have an LCS_3 in the assembly.
Code: Select all
myPart (App::Part)
│
├─ LCS_0
├─ Body
│ ├─ Sketch-1
│ ├─ Extrusion
│ ├─ Sketch-2
│ └─ Extrusion
└─ LCS_1
Model (App::Part)
│
├─ LCS_0
├─ Sketch-1
├─ LCS_1
├─ LCS_2
│
├─ myLink_1 (App::Link to myPart, attached to LCS_1)
│ ├─ LCS_0
│ ├─ Body
│ │ ├─ Sketch-1
│ │ ├─ Extrusion
│ │ ├─ Sketch-2
│ │ └─ Extrusion
│ └─ LCS_1
│
├─ myLink_2 (App::Link to myPart, attached to LCS_2)
│ ├─ LCS_0
│ ├─ Body
│ │ ├─ Sketch-1
│ │ ├─ Extrusion
│ │ ├─ Sketch-2
│ │ └─ Extrusion
│ └─ LCS_1 ← this is selected
│
└─ LCS_3
Now, I have selected, in the assembly window, the LCS_1 belonging to myLink_2. I am able to retrieve that it (the selected LCS_1) belongs to myPart, but what I would need to know is that I have selected the LCS_1 the belongs to the instance myLink_2 of myPart.
(because I want to attach, by its ExpressionEngine, LCS_3 of the assembly to the LCS_1 in myLink_2, therefore I need to know the Placement of LCS_1 in myPart → easy, and also the Placement of myLink_2 in the assembly → hard)