<?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: Intersections became obsolete in 2012 in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/intersectwith-became-obsolete-in-2012/m-p/4771857#M59598</link>
    <description>&lt;P&gt;I get the same error with the following code:&lt;/P&gt;&lt;PRE&gt;For i = 1 To NrV
                            Dim colI As New Point3dCollection
                            Dim colIT As New Point3dCollection
                            myLine.IntersectWith(pollie, Intersect.OnBothOperands, colI, 1, i)
                            myTempLine.IntersectWith(pollie, Intersect.OnBothOperands, colIT, 1, i)
                            If colI.Count &amp;gt; 0 And colIT.Count &amp;gt; 0 Then
                                For j = 0 To colI.Count - 1
                                    colIntersection.Add(colI(j))
                                Next j
                                For j = 0 To colIT.Count - 1
                                    colIntersectionT.Add(colIT(j))
                                Next j
                            End If
                        Next i&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Can someone please help me?&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jan 2014 06:20:39 GMT</pubDate>
    <dc:creator>Jozi68</dc:creator>
    <dc:date>2014-01-24T06:20:39Z</dc:date>
    <item>
      <title>IntersectWith became obsolete in 2012</title>
      <link>https://forums.autodesk.com/t5/net-forum/intersectwith-became-obsolete-in-2012/m-p/3133444#M59592</link>
      <description>&lt;P&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;Hello everybody.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;I had this piece of code in 2010. Now when I re-reference the dll to 2012 . I get a warning message showing:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;Public Sub IntersectWith( blah blah blah ) is obsolete. "Use the overload taking IntPrt instead.".&amp;nbsp; I don't know how . Anybody can help me with this ?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;Already appreciated .&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;Janet,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;Here is code.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim intpts As New Point3dCollection()&lt;/P&gt;&lt;P&gt;List_Entities(I).IntersectWith(List_Entities(I + 1), Intersect.OnBothOperands, intpts, 0, 0)&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;</description>
      <pubDate>Tue, 23 Aug 2011 18:03:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/intersectwith-became-obsolete-in-2012/m-p/3133444#M59592</guid>
      <dc:creator>JanetDavidson</dc:creator>
      <dc:date>2011-08-23T18:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: IntersectWith became obsolete in 2012</title>
      <link>https://forums.autodesk.com/t5/net-forum/intersectwith-became-obsolete-in-2012/m-p/3133602#M59593</link>
      <description>&lt;P&gt;I had the same thing come up, and while the "obsolete" version still works for now, it eventually won't.&amp;nbsp; As it turned out , the function where I had this warning come up was not being used, so my fix has not been tested.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, seeing that you were just passing zero (as I was) I think you just want to pass New IntPtr(0).&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2011 19:48:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/intersectwith-became-obsolete-in-2012/m-p/3133602#M59593</guid>
      <dc:creator>chiefbraincloud</dc:creator>
      <dc:date>2011-08-23T19:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Intersections became obsolete in 2012</title>
      <link>https://forums.autodesk.com/t5/net-forum/intersectwith-became-obsolete-in-2012/m-p/3133662#M59594</link>
      <description>&lt;P&gt;Thanks for Reply ,Chief.&lt;/P&gt;&lt;P&gt;What I need is just finding all intersections of objects Not only intpts(0). Is there anything wrong with the Zero I&amp;nbsp;assigned for&lt;/P&gt;&lt;P&gt;thisGraphicSystemMarker&amp;nbsp; and otherGraphicSystemMarker ?. Is that what you referring to ?&lt;/P&gt;&lt;P&gt;Maybe this will clear my intention better.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; Dim intpts As New Point3dCollection()
                List_Entities(I).IntersectWith(List_Entities(I + 1), Intersect.OnBothOperands, intpts, 0, 0)
                If intpts.Count = 1 Then
                    ' Do this
else
   ' do something else.
end if.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2011 20:40:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/intersectwith-became-obsolete-in-2012/m-p/3133662#M59594</guid>
      <dc:creator>JanetDavidson</dc:creator>
      <dc:date>2011-08-23T20:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Intersections became obsolete in 2012</title>
      <link>https://forums.autodesk.com/t5/net-forum/intersectwith-became-obsolete-in-2012/m-p/3133668#M59595</link>
      <description>&lt;P&gt;My reply says New IntPtr (0), not intpts(0)...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I mean to pass&amp;nbsp;New IntPtr(0) for the graphics system markers, but like I said, it doesn't give any compile errors, but I have not tested it to make sure that it works as expected.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2011 20:47:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/intersectwith-became-obsolete-in-2012/m-p/3133668#M59595</guid>
      <dc:creator>chiefbraincloud</dc:creator>
      <dc:date>2011-08-23T20:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Intersections became obsolete in 2012</title>
      <link>https://forums.autodesk.com/t5/net-forum/intersectwith-became-obsolete-in-2012/m-p/3133690#M59596</link>
      <description>&lt;P&gt;Using your code example, changing the function call to this should work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;List_Entities(I).IntersectWith(List_Entities(I + 1), Intersect.OnBothOperands, intpts, IntPtr.Zero, IntPtr.Zero)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2011 21:08:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/intersectwith-became-obsolete-in-2012/m-p/3133690#M59596</guid>
      <dc:creator>StephenPreston</dc:creator>
      <dc:date>2011-08-23T21:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: Intersections became obsolete in 2012</title>
      <link>https://forums.autodesk.com/t5/net-forum/intersectwith-became-obsolete-in-2012/m-p/3133936#M59597</link>
      <description>&lt;P&gt;Stephen, Thanks. That was the trick.&lt;/P&gt;&lt;P&gt;It is hard for a girl to understand these things.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Janet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2011 02:27:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/intersectwith-became-obsolete-in-2012/m-p/3133936#M59597</guid>
      <dc:creator>JanetDavidson</dc:creator>
      <dc:date>2011-08-24T02:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Intersections became obsolete in 2012</title>
      <link>https://forums.autodesk.com/t5/net-forum/intersectwith-became-obsolete-in-2012/m-p/4771857#M59598</link>
      <description>&lt;P&gt;I get the same error with the following code:&lt;/P&gt;&lt;PRE&gt;For i = 1 To NrV
                            Dim colI As New Point3dCollection
                            Dim colIT As New Point3dCollection
                            myLine.IntersectWith(pollie, Intersect.OnBothOperands, colI, 1, i)
                            myTempLine.IntersectWith(pollie, Intersect.OnBothOperands, colIT, 1, i)
                            If colI.Count &amp;gt; 0 And colIT.Count &amp;gt; 0 Then
                                For j = 0 To colI.Count - 1
                                    colIntersection.Add(colI(j))
                                Next j
                                For j = 0 To colIT.Count - 1
                                    colIntersectionT.Add(colIT(j))
                                Next j
                            End If
                        Next i&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Can someone please help me?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2014 06:20:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/intersectwith-became-obsolete-in-2012/m-p/4771857#M59598</guid>
      <dc:creator>Jozi68</dc:creator>
      <dc:date>2014-01-24T06:20:39Z</dc:date>
    </item>
  </channel>
</rss>

