Opening on floor and not in wall

I am trying to write a script to automatically insert a opening (window family we created.) where ducting/pipes/terminal intersect to make builders work drawings.

But doesn’t matter what i try it keeps placing it on the floor and not in the wall. the opening sizes adjust and it is at the right location in respect to where it should be but on the floor, not in the wall.

Its a scrip that was originally designed by Daniël Gijsbers.

Can someone help please? I am using Dynamo 2.0