for x in walls:
for y in walls:
filterIntersect = ElementIntersectsElementFilter(x)
if x is not y:
if filterIntersect.PassesFilter(y):
joined.append(y)
try:
JoinGeometryUtils.JoinGeometry(doc,x,y)
except:
pass
else:
point = x.Location.Curve.Origin.ToPoint()
curve = y.Location.Curve.ToProtoType()
distance = curve.DistanceTo(point)
thickF = (x.Width + y.Width)/2
thickM = UnitUtils.ConvertFromInternalUnits(thickF,DisplayUnitType.DUT_MILLIMETERS)
if distance == thickM:
joined.append(y)
try:
JoinGeometryUtils.JoinGeometry(doc,x,y)
except:
pass
As sovitek said you can transpose those pairs into two lists and join them that way. Do try his approach and if it doesnt work then you must have a different list structure.
I gave you python code in the other thread. If you need more python code maybe try to take some time to learn about it first.
this code is not working😕
for splitting the list i am using slice node, one below another so that the script will run
and its working fine, but it will become huge node tree so…