Unable to Connect Pipes to Structures

Hi all,

I am unable to Connect my created pipes and structures.
I found this Post

This used to work for me as well, but it isn’t anymore. When I check the script I see that all the structure bounding boxes are the same, so I think something is going wrong there. The structures, are, however, all at a different place in my drawing.