Auto Join Walls and Columns

Hi Ben!

I did the script you gave and realized that It worked very well. But the matter is all walls joined with all colums regarless they didn’t intersect.

So i got the warnings from Revit like a attached picture.

Can you help me to deal with this problem?

Thanks!