<?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 Re: find ALL intersectionpoints between line and polyline in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/find-all-intersectionpoints-between-line-and-polyline/m-p/9572160#M19393</link>
    <description>&lt;P&gt;I'm sorry, seems like i've got a bad day today.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Problem was in the selectionset-filters. not in the intersectwith.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;had to add lwpolyline &amp;amp; 3dpolyline to it.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Consider this topic closed.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jun 2020 14:48:00 GMT</pubDate>
    <dc:creator>stefanveurink68AXD</dc:creator>
    <dc:date>2020-06-10T14:48:00Z</dc:date>
    <item>
      <title>find ALL intersectionpoints between line and polyline</title>
      <link>https://forums.autodesk.com/t5/net-forum/find-all-intersectionpoints-between-line-and-polyline/m-p/9571500#M19392</link>
      <description>&lt;P&gt;I'm working on some code to place dimensions, so let user pick 2 points and code will place dimensions between all intersections of objects with the line between this 2 points.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Points are collected by:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Point3dCollection punten = new Point3dCollection();

foreach (ObjectId id in set.GetObjectIds())
{
 Entity ent = tra.GetObject(id, OpenMode.ForRead) as Entity;
 maatlijn.IntersectWith(ent, Intersect.OnBothOperands, punten, IntPtr.Zero, 
 IntPtr.Zero);
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this works fine as long as objects are 'lines'.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when intersecting object is polyline, it doesn't seem to give all points, sometimes even results into fatal error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea on how to fix this?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 10:13:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/find-all-intersectionpoints-between-line-and-polyline/m-p/9571500#M19392</guid>
      <dc:creator>stefanveurink68AXD</dc:creator>
      <dc:date>2020-06-10T10:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: find ALL intersectionpoints between line and polyline</title>
      <link>https://forums.autodesk.com/t5/net-forum/find-all-intersectionpoints-between-line-and-polyline/m-p/9572160#M19393</link>
      <description>&lt;P&gt;I'm sorry, seems like i've got a bad day today.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Problem was in the selectionset-filters. not in the intersectwith.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;had to add lwpolyline &amp;amp; 3dpolyline to it.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Consider this topic closed.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 14:48:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/find-all-intersectionpoints-between-line-and-polyline/m-p/9572160#M19393</guid>
      <dc:creator>stefanveurink68AXD</dc:creator>
      <dc:date>2020-06-10T14:48:00Z</dc:date>
    </item>
  </channel>
</rss>

