<?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: Can't find intersections. in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/can-t-find-intersections/m-p/12159172#M7801</link>
    <description>&lt;P&gt;Hi Kerry,&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/529262"&gt;@kerry_w_brown&lt;/a&gt;&amp;nbsp; a écrit&amp;nbsp;:&lt;BR /&gt;
&lt;P&gt;Where do you define the Plane parameters ??&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The default ctor: new plane() uses the default values: Point3d.Origin and Vector3d.ZAxis.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Aug 2023 10:08:01 GMT</pubDate>
    <dc:creator>_gile</dc:creator>
    <dc:date>2023-08-09T10:08:01Z</dc:date>
    <item>
      <title>Can't find intersections.</title>
      <link>https://forums.autodesk.com/t5/net-forum/can-t-find-intersections/m-p/12159095#M7798</link>
      <description>&lt;P&gt;I can't get the intersections in the graph, anything else of the same type is fine.I don't know if this is a bug or if there is something wrong with my code. Please help me find out what the problem is. the code is simple :&lt;/P&gt;&lt;P&gt;Point3dCollection intersections = new Point3dCollection();&lt;/P&gt;&lt;P&gt;var plane = new Plane();&lt;/P&gt;&lt;P&gt;curve1.IntersectWith(curve2, Intersect.OnBothOperands,plane, intersections, IntPtr.Zero, IntPtr.Zero);&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 09:26:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/can-t-find-intersections/m-p/12159095#M7798</guid>
      <dc:creator>932189886</dc:creator>
      <dc:date>2023-08-09T09:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can't find intersections.</title>
      <link>https://forums.autodesk.com/t5/net-forum/can-t-find-intersections/m-p/12159137#M7799</link>
      <description>&lt;P&gt;I assume you're getting an error message ??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where do you define the Plane parameters ??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's better if you post a small self contained method to save your peers having to guess.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 09:47:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/can-t-find-intersections/m-p/12159137#M7799</guid>
      <dc:creator>kerry_w_brown</dc:creator>
      <dc:date>2023-08-09T09:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Can't find intersections.</title>
      <link>https://forums.autodesk.com/t5/net-forum/can-t-find-intersections/m-p/12159166#M7800</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;It works for me with your drawing.&lt;/P&gt;
&lt;P&gt;Testing command:&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;        [CommandMethod("INT")]
        public static void Int()
        {
            var doc = Application.DocumentManager.MdiActiveDocument;
            var db = doc.Database;
            var ed = doc.Editor;

            var peo = new PromptEntityOptions("\nSelect curve 1: ");
            peo.SetRejectMessage("\nSelected object is not a Curve.");
            peo.AddAllowedClass(typeof(Curve), false);
            var per = ed.GetEntity(peo);
            if (per.Status != PromptStatus.OK) return;
            var id1 = per.ObjectId;

            peo.Message = "\nSelect curve 2: ";
            per = ed.GetEntity(peo);
            if (per.Status != PromptStatus.OK) return;
            var id2 = per.ObjectId;

            using (var tr = db.TransactionManager.StartTransaction())
            {
                var points = new Point3dCollection();
                var plane = new Plane();
                var curve1 = (Entity)tr.GetObject(id1, OpenMode.ForRead);
                var curve2 = (Entity)tr.GetObject(id2, OpenMode.ForRead);
                curve1.IntersectWith(curve2, Intersect.OnBothOperands, plane, points, IntPtr.Zero, IntPtr.Zero);
                if (0 &amp;lt; points.Count)
                {
                    var curSpace = (BlockTableRecord)tr.GetObject(db.CurrentSpaceId, OpenMode.ForWrite);
                    foreach (Point3d pt in points)
                    {
                        var dbPoint = new DBPoint(pt);
                        curSpace.AppendEntity(dbPoint);
                        tr.AddNewlyCreatedDBObject(dbPoint, true);
                    }
                }
                else
                {
                    ed.WriteMessage("\nNone intersection.");
                }
                tr.Commit();
            }
        }&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 09 Aug 2023 10:06:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/can-t-find-intersections/m-p/12159166#M7800</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2023-08-09T10:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can't find intersections.</title>
      <link>https://forums.autodesk.com/t5/net-forum/can-t-find-intersections/m-p/12159172#M7801</link>
      <description>&lt;P&gt;Hi Kerry,&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/529262"&gt;@kerry_w_brown&lt;/a&gt;&amp;nbsp; a écrit&amp;nbsp;:&lt;BR /&gt;
&lt;P&gt;Where do you define the Plane parameters ??&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The default ctor: new plane() uses the default values: Point3d.Origin and Vector3d.ZAxis.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 10:08:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/can-t-find-intersections/m-p/12159172#M7801</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2023-08-09T10:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can't find intersections.</title>
      <link>https://forums.autodesk.com/t5/net-forum/can-t-find-intersections/m-p/12159184#M7802</link>
      <description>THK U.I TEST YOUR CODE,BUT STILL NONE.I'M USING ACAD2016.</description>
      <pubDate>Wed, 09 Aug 2023 10:15:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/can-t-find-intersections/m-p/12159184#M7802</guid>
      <dc:creator>932189886</dc:creator>
      <dc:date>2023-08-09T10:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can't find intersections.</title>
      <link>https://forums.autodesk.com/t5/net-forum/can-t-find-intersections/m-p/12159189#M7803</link>
      <description>&lt;P&gt;happenstance&amp;nbsp; ?&lt;BR /&gt;default is :&lt;/P&gt;&lt;P&gt;Normal :&amp;nbsp;{(0,0,1)}&lt;/P&gt;&lt;P&gt;PointOnPlane :&amp;nbsp;Y = 0, X = 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;added: Gilles beat me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 10:19:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/can-t-find-intersections/m-p/12159189#M7803</guid>
      <dc:creator>kerry_w_brown</dc:creator>
      <dc:date>2023-08-09T10:19:56Z</dc:date>
    </item>
  </channel>
</rss>

