Last active
October 7, 2020 16:54
-
-
Save chuongmep/202109c0e073ff5de1af178e52903527 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static XYZ Intersection(this Autodesk.Revit.DB.Line line1, Autodesk.Revit.DB.Line line2) | |
{ | |
IntersectionResultArray iResult = new IntersectionResultArray(); | |
SetComparisonResult setComparisonResult = line1.Intersect(line2, out iResult); | |
if (setComparisonResult != SetComparisonResult.Disjoint) | |
return iResult.get_Item(0).XYZPoint; | |
return null; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment