<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Not able to get InterSection point between Wall and Column. in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/not-able-to-get-intersection-point-between-wall-and-column/m-p/12412496#M8321</link>
    <description>&lt;P&gt;public XYZ FindLocPoint(Element ele1, Element ele2, Document doc)&lt;BR /&gt;{&lt;BR /&gt;LocationCurve locCurve = ele1.Location as LocationCurve;&lt;BR /&gt;Line curve1 = null;&lt;BR /&gt;if (locCurve != null)&lt;BR /&gt;{&lt;BR /&gt;curve1 = locCurve.Curve as Line;&lt;BR /&gt;}&lt;BR /&gt;else if (locCurve == null)&lt;BR /&gt;{&lt;BR /&gt;BoundingBoxXYZ bbox = ele1.get_BoundingBox(doc.ActiveView);&lt;BR /&gt;XYZ cp = bbox.Min.Add(bbox.Max).Divide(2.0);&lt;BR /&gt;XYZ p1 = new XYZ(cp.X, cp.Y, bbox.Min.Z);&lt;BR /&gt;XYZ p2 = new XYZ(cp.X, cp.Y, bbox.Max.Z);&lt;BR /&gt;curve1 = Line.CreateBound(p1, p2);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;LocationCurve locCurve2 = ele2.Location as LocationCurve;&lt;BR /&gt;Line curve2 = null;&lt;BR /&gt;if (locCurve2 != null)&lt;BR /&gt;{&lt;BR /&gt;curve2 = locCurve2.Curve as Line;&lt;BR /&gt;}&lt;BR /&gt;else if (locCurve2 == null)&lt;BR /&gt;{&lt;BR /&gt;BoundingBoxXYZ bbox = ele2.get_BoundingBox(doc.ActiveView);&lt;BR /&gt;XYZ cp = bbox.Min.Add(bbox.Max).Divide(2.0);&lt;BR /&gt;XYZ p1 = new XYZ(cp.X, cp.Y, bbox.Min.Z);&lt;BR /&gt;XYZ p2 = new XYZ(cp.X, cp.Y, bbox.Max.Z);&lt;BR /&gt;curve2 = Line.CreateBound(p1, p2);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;IntersectionResultArray intersectionResultArray = null;&lt;BR /&gt;XYZ point = null;&lt;/P&gt;&lt;P&gt;curve2.Intersect(curve1, out intersectionResultArray);&lt;BR /&gt;foreach (IntersectionResult intersectionResult in intersectionResultArray)&lt;BR /&gt;{&lt;BR /&gt;point = intersectionResult.XYZPoint;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;return point;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;@&lt;SPAN&gt;Mohamed_Arshad&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Dec 2023 06:16:48 GMT</pubDate>
    <dc:creator>praveen.cMXB2H</dc:creator>
    <dc:date>2023-12-01T06:16:48Z</dc:date>
    <item>
      <title>Not able to get InterSection point between Wall and Column.</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/not-able-to-get-intersection-point-between-wall-and-column/m-p/12412496#M8321</link>
      <description>&lt;P&gt;public XYZ FindLocPoint(Element ele1, Element ele2, Document doc)&lt;BR /&gt;{&lt;BR /&gt;LocationCurve locCurve = ele1.Location as LocationCurve;&lt;BR /&gt;Line curve1 = null;&lt;BR /&gt;if (locCurve != null)&lt;BR /&gt;{&lt;BR /&gt;curve1 = locCurve.Curve as Line;&lt;BR /&gt;}&lt;BR /&gt;else if (locCurve == null)&lt;BR /&gt;{&lt;BR /&gt;BoundingBoxXYZ bbox = ele1.get_BoundingBox(doc.ActiveView);&lt;BR /&gt;XYZ cp = bbox.Min.Add(bbox.Max).Divide(2.0);&lt;BR /&gt;XYZ p1 = new XYZ(cp.X, cp.Y, bbox.Min.Z);&lt;BR /&gt;XYZ p2 = new XYZ(cp.X, cp.Y, bbox.Max.Z);&lt;BR /&gt;curve1 = Line.CreateBound(p1, p2);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;LocationCurve locCurve2 = ele2.Location as LocationCurve;&lt;BR /&gt;Line curve2 = null;&lt;BR /&gt;if (locCurve2 != null)&lt;BR /&gt;{&lt;BR /&gt;curve2 = locCurve2.Curve as Line;&lt;BR /&gt;}&lt;BR /&gt;else if (locCurve2 == null)&lt;BR /&gt;{&lt;BR /&gt;BoundingBoxXYZ bbox = ele2.get_BoundingBox(doc.ActiveView);&lt;BR /&gt;XYZ cp = bbox.Min.Add(bbox.Max).Divide(2.0);&lt;BR /&gt;XYZ p1 = new XYZ(cp.X, cp.Y, bbox.Min.Z);&lt;BR /&gt;XYZ p2 = new XYZ(cp.X, cp.Y, bbox.Max.Z);&lt;BR /&gt;curve2 = Line.CreateBound(p1, p2);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;IntersectionResultArray intersectionResultArray = null;&lt;BR /&gt;XYZ point = null;&lt;/P&gt;&lt;P&gt;curve2.Intersect(curve1, out intersectionResultArray);&lt;BR /&gt;foreach (IntersectionResult intersectionResult in intersectionResultArray)&lt;BR /&gt;{&lt;BR /&gt;point = intersectionResult.XYZPoint;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;return point;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;@&lt;SPAN&gt;Mohamed_Arshad&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2023 06:16:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/not-able-to-get-intersection-point-between-wall-and-column/m-p/12412496#M8321</guid>
      <dc:creator>praveen.cMXB2H</dc:creator>
      <dc:date>2023-12-01T06:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to get InterSection point between Wall and Column.</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/not-able-to-get-intersection-point-between-wall-and-column/m-p/12413252#M8322</link>
      <description>&lt;P&gt;If the wall is flat and the column is straight, it might be easiest to just DIY and implement a simple geometric intersection algorithm to intersect a plane with a straight line segment:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://duckduckgo.com/?q=plane+line+intersection" target="_blank"&gt;https://duckduckgo.com/?q=plane+line+intersection&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2023 14:02:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/not-able-to-get-intersection-point-between-wall-and-column/m-p/12413252#M8322</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2023-12-01T14:02:10Z</dc:date>
    </item>
  </channel>
</rss>

