Auto join structure with wall parts

Hi,

After I created a routine to create parts of the walls, I noticed that my routine to join between walls and structure does not work.

How can I make a routine that joins sctructure with parts of walls?

Regards

Bump.