Position of specific curtain panel to find panel next to it


#1

I’am just taking my first steps in Dynamo and I’am hitting a wall.

I want to know the position of a specific panel so that i can replace him with another panel
And than replace the panels next to it. To do this i need the position of the panel, so that i can find the panel next to it.
I have extracted the panel from my curtainsystem. I was thinking of getting the ID of the element and then find the same Id of the curtainpanel plane,
but the ID that i extect in the end isn’t the same as the id earlier in the lists.
dynamo

 

 

 

 

What am i doing wrong and is there a better way.

Thank you for your time and effort.

Arno