I am trying to determine how the ends of each wall interact with the surrounding walls. The results can be “No Intersection” / “T-Intersection” / “Corner”. Additionaly I wish to add a parameter witch show the intersecting wall.
For this reason I setup a script which looks at the end points and seeks for an intersection with another wall location line. In the first step I just tested if there is any intersection with another wall.
My script looks like this and works fine:
from Autodesk.DesignScript.Geometry import *
points = IN
curves = IN
intersect = IN
counter = 0
for p,c,intersectionList in zip(points,curves,intersect):
intersectionCounter = 0
foundIntersection = False
for i in intersectionList:
if i == True and intersectionCounter != counter: #
foundIntersection = True
intersectionCounter += 1
if foundIntersection == True:
OUT = outIntersectionType,outIntersectionCurves
But now I ran into the problem, that the wall location line does not end on the wall location line of another wall. For this reason, there is no intersection and my script makes no sense anymore.
Is there an API method that is able to figure out such a wall connection or does anyone have an idea for a better solution to reach my goal?
Thanks and kind regards,
ARC_Wall_Ends.dyn (29.0 KB)