- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am able to get LocationCurve reference for walls but getting null reference for Beams and Columnns.
IntersectionResultArray intersectionResultArray = null;
XYZ point = null;
LocationCurve hostLocation = e1.Location as LocationCurve;
Curve hostCurve = hostLocation.Curve;
//Getting FamilyInstance CurveLocation
FamilyInstance familyInstance = e2 as FamilyInstance;
Location location = familyInstance.Location;
Curve famCurve = (location as LocationCurve).Curve;
//Here i need to get LocationCurve reference for to find intersection point of the elements.
hostCurve.Intersect(famCurve, out intersectionResultArray);
foreach (IntersectionResult intersectionResult in intersectionResultArray)
{
point = intersectionResult.XYZPoint;
}
Is there any other way to get intersecting point of two elements, if it is not possible to get LocationCurve of the FamilyInstance.
Solved! Go to Solution.