<?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: Problem using intersectWith in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/problem-using-intersectwith/m-p/6970693#M32166</link>
    <description>&lt;P&gt;I can recommend using this method:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;public void IntersectWith(
    Entity entityPointer, 
    Autodesk.AutoCAD.DatabaseServices.Intersect intersectType, 
    &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;Plane projectionPlane, // !!!!!!!! &lt;/STRONG&gt;&lt;/FONT&gt;
    Point3dCollection points, 
    IntPtr thisGraphicSystemMarker, 
    IntPtr otherGraphicSystemMarker
);

&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Mar 2017 13:08:02 GMT</pubDate>
    <dc:creator>Alexander.Rivilis</dc:creator>
    <dc:date>2017-03-24T13:08:02Z</dc:date>
    <item>
      <title>Problem using intersectWith</title>
      <link>https://forums.autodesk.com/t5/net-forum/problem-using-intersectwith/m-p/6970090#M32162</link>
      <description>&lt;P&gt;my code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt; [CommandMethod("testLineCross")]
  public void testLineCross()
 {
             Document doc = AcadApp.DocumentManager.MdiActiveDocument;
             Editor ed = doc.Editor;
             Database db = doc.Database;
             PromptEntityResult per = ed.GetEntity("Line1");
             using (Transaction tr = doc.TransactionManager.StartOpenCloseTransaction())
             {
                 Line l1 = tr.GetObject(per.ObjectId, OpenMode.ForRead) as Line;
                 per = ed.GetEntity("Line2");
                 Line l2 = tr.GetObject(per.ObjectId, OpenMode.ForRead) as Line;
                 Point3dCollection ptcol = new Point3dCollection();
                 l1.IntersectWith(l2, Intersect.ExtendBoth,ptcol, IntPtr.Zero, IntPtr.Zero);
                 if (ptcol.Count &amp;gt; 0)
                     ed.WriteMessage("Intersect");
                 else
                     ed.WriteMessage("non-intersect");
                 tr.Commit();
             }	
   }&lt;/PRE&gt;
&lt;P&gt;My dwg see the Attachemnts.&lt;/P&gt;
&lt;P&gt;why get the intersectPoint?&lt;/P&gt;
&lt;P&gt;Version:AutoCAD 2012&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 09:08:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/problem-using-intersectwith/m-p/6970090#M32162</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-24T09:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using intersectWith</title>
      <link>https://forums.autodesk.com/t5/net-forum/problem-using-intersectwith/m-p/6970503#M32163</link>
      <description>&lt;P&gt;Line1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from， X=11924.7823&amp;nbsp; Y=8634.7220&amp;nbsp; Z=&amp;nbsp;&amp;nbsp; 0.0000&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; to， X=11926.0027&amp;nbsp; Y=-9044.7187&amp;nbsp; Z=&amp;nbsp;&amp;nbsp; 0.0000&lt;BR /&gt;Line2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from， X=5170.8647&amp;nbsp; Y=2737.5595&amp;nbsp; Z=&amp;nbsp;&amp;nbsp; 0.0000&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; to， X=18677.5784&amp;nbsp; Y=2737.5595&amp;nbsp; Z=&amp;nbsp;&amp;nbsp; 0.0000&lt;/P&gt;
&lt;P&gt;&amp;nbsp; using the code:&lt;/P&gt;
&lt;PRE&gt; l1.IntersectWith(l2, Intersect.ExtendBoth,ptcol, IntPtr.Zero, IntPtr.Zero);&lt;/PRE&gt;
&lt;P&gt;but the resulst show ptcol.Count==0.Why can not get the intersect point?&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 12:26:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/problem-using-intersectwith/m-p/6970503#M32163</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-24T12:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using intersectWith</title>
      <link>https://forums.autodesk.com/t5/net-forum/problem-using-intersectwith/m-p/6970672#M32164</link>
      <description>&lt;P&gt;It easy explain:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2017-03-24_15-01-30.png" style="width: 603px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/337179iD9829CE2BDF26DE0/image-dimensions/603x481?v=v2" width="603" height="481" role="button" title="2017-03-24_15-01-30.png" alt="2017-03-24_15-01-30.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 13:03:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/problem-using-intersectwith/m-p/6970672#M32164</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2017-03-24T13:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using intersectWith</title>
      <link>https://forums.autodesk.com/t5/net-forum/problem-using-intersectwith/m-p/6970691#M32165</link>
      <description>&lt;P&gt;thank you.&lt;/P&gt;
&lt;P&gt;how to avoid this precision error?&lt;/P&gt;
&lt;P&gt;Convert to 2D Line?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 13:07:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/problem-using-intersectwith/m-p/6970691#M32165</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-24T13:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using intersectWith</title>
      <link>https://forums.autodesk.com/t5/net-forum/problem-using-intersectwith/m-p/6970693#M32166</link>
      <description>&lt;P&gt;I can recommend using this method:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;public void IntersectWith(
    Entity entityPointer, 
    Autodesk.AutoCAD.DatabaseServices.Intersect intersectType, 
    &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;Plane projectionPlane, // !!!!!!!! &lt;/STRONG&gt;&lt;/FONT&gt;
    Point3dCollection points, 
    IntPtr thisGraphicSystemMarker, 
    IntPtr otherGraphicSystemMarker
);

&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 13:08:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/problem-using-intersectwith/m-p/6970693#M32166</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2017-03-24T13:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using intersectWith</title>
      <link>https://forums.autodesk.com/t5/net-forum/problem-using-intersectwith/m-p/12642216#M32167</link>
      <description>&lt;P&gt;Thanks for the help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 05:07:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/problem-using-intersectwith/m-p/12642216#M32167</guid>
      <dc:creator>Richard_AshJNQQ8</dc:creator>
      <dc:date>2024-03-15T05:07:57Z</dc:date>
    </item>
  </channel>
</rss>

