@bvs1982 I tried different lacing and levels but didn get it, your example worked, however I didn understand why. @Nick_Boyts explained it very well and its much clearer than before.
I did run into my next problem. My test script filtered out all walls for one level so that it was a easier for me to follow the script. I thought I could change it to not filter levels and it would still work. Alas, that was not the case. I also ran into some other problems related to how we may model a typical building and started the script over (similar principle).
In the script below/attached, I am grouping the walls per level and then filtering out the insulation so I have a list of insulation walls and all other walls. Then using Element.GetLocation I create curves for all the other walls and make a perpendicular line, I intersect these perpendicular lines with the lines from the insulation using a Geometry.DoesIntersect node.
My list structure is (walls) per level, what I wanted to do was to intersect the curves for each wall per level and generate a list of walls per level with a sub-list of (typically) two walls which I can then join up with the common wall (like in the OP).
I cant figure out how to accompish this, or at least I am not seeing the results I was expecting with the intersection. I was expecting a list with sublists for each level, with two items per sublist.
Above, I know that item 0 in the insulation list is parallel to items 0 and 4 in list 2 of other walls., and item 1 is parallel to items 1 and 2 in the other list.
I think I should see a sub-list for each of the insulation walls with a list of 4x true/falls items. (I realise the lacing/levels are incorrect in the example because I was trying different combinations).
My next step is to cycle through the other walls and make a list which matches the insulation wall to a pair of parallel walls. If I can get this then I’m able to join the pairs of walls like in the above.
Join external walls.dyn (1.7 MB)
—edit—
I realise after trying a few more things I should be approaching this differently. At present I’m trying to match walls to insulation. I think I can also (maybe better) match the insulation walls to the walls for which I am trying to make the intersection.