PLEASE IGNORE THIS POST
Hello All,
I have two am trying to find the placement of two objects via code. It turns out that one object is a link of another.
Here are the objects of interest:
Code: Select all
objs=doc.Objects
for a in objs:
if a.Label.__contains__("LED-Green"):
print(a.Label,a.Placement)
Code: Select all
D4_LED-Green_00006137f4de Placement [Pos=(-29.9581,6.25,-2.1), Yaw-Pitch-Roll=(0,0,0)]
D5_LED-Green_00006137f4f0 Placement [Pos=(-29.9581,-6.25,-2.1), Yaw-Pitch-Roll=(0,0,0)]
However D5 is a link of D4.
Code: Select all
>>> doc.getObjectsByLabel("D4_LED-Green_00006137f4de")[0]
<Part::PartFeature>
>>> doc.getObjectsByLabel("D5_LED-Green_00006137f4f0")[0]
<App::Link object>
How do I get D5's position.
D4 and D5 are visually in different positions.
Thanks.