Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I've been making a function to detect line intersections with other lines via Line.Intersect(Curve,IntersectionResultArray) function however the function expects a Curve type as the second parameter.
from Autodesk.Revit import DB
from Autodesk.Revit.DB import *
from Autodesk.Revit.UI import *
NewPoint1 = XYZ(P2.X, (P2.Y+P1.Y)/2, P1.Z)
NewPoint2 = XYZ(150,(P2.Y+P1.Y)/2,P1.Z)
L1 = Line.CreateBound(NewPoint1,NewPoint2)
resultArray = clr.Reference[IntersectionResultArray]()
Overlap = Line.Intersect(L1, resultArray)
if Overlap == SetComparisonResult.Overlap:
print("Lines Overlap")
Any help would be appreciated.
Cheers,
Tyson
Solved! Go to Solution.