Hi everyone
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:
import clr
clr.AddReference(‘ProtoGeometry’)
from Autodesk.DesignScript.Geometry import *points = IN[0]
curves = IN[1]
intersect = IN[2]outIntersectionType =
outIntersectionCurves =counter = 0
for p,c,intersectionList in zip(points,curves,intersect):
intersectionCounter = 0
foundIntersection = False
intersectionCurves =
for i in intersectionList[0]:
if i == True and intersectionCounter != counter: #
#outIntersectionType.append(“FOUND!”)
foundIntersection = True
intersectionCurves.append(curves[intersectionCounter])
intersectionCounter += 1outIntersectionCurves.append(intersectionCurves)
if foundIntersection == True:
outIntersectionType.append(“Intersection”)
else:
outIntersectionType.append(“-”)
counter +=1OUT = 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,
Jannis
ARC_Wall_Ends.dyn (29.0 KB)