<?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: A bug of IntersectWith() in Autocad 2014! in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/a-bug-of-intersectwith-in-autocad-2014/m-p/7279734#M30271</link>
    <description>&lt;P&gt;I try your code and i just found that error still alive...Did you use the drawing i given to test your code?&lt;/P&gt;</description>
    <pubDate>Sun, 06 Aug 2017 15:51:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-08-06T15:51:20Z</dc:date>
    <item>
      <title>A bug of IntersectWith() in Autocad 2014!</title>
      <link>https://forums.autodesk.com/t5/net-forum/a-bug-of-intersectwith-in-autocad-2014/m-p/7279553#M30268</link>
      <description>&lt;P&gt;In a dwg ,I test a line is really intersectwith a blockreference .The dwg is the follow.But i found it always occour a error :enotapplicable!Oh my god !&lt;/P&gt;&lt;P&gt;The way to test a line is really intersectwith a blockreference is iterating the entity in BlocktableRecord of blockreference and testing whether the line is intersectwith the entity.Does anyone can give me some help?Thanks a lot!&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;&lt;!-- StartFragment  --&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Document&amp;nbsp;doc&amp;nbsp;=&amp;nbsp;Application.DocumentManager.MdiActiveDocument;&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;Database&amp;nbsp;db&amp;nbsp;=&amp;nbsp;doc.Database;&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;Editor&amp;nbsp;ed&amp;nbsp;=&amp;nbsp;doc.Editor;&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;PromptEntityOptions&amp;nbsp;peo&amp;nbsp;=&amp;nbsp;new&amp;nbsp;PromptEntityOptions("\n请选择一条直线");&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;peo.SetRejectMessage("\n选择的类型不正确");&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;peo.AddAllowedClass(typeof(Line),&amp;nbsp;true);&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;PromptEntityResult&amp;nbsp;per&amp;nbsp;=&amp;nbsp;ed.GetEntity(peo);&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;if&amp;nbsp;(per.Status&amp;nbsp;==&amp;nbsp;PromptStatus.OK)&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;{&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;PromptEntityOptions&amp;nbsp;peo1&amp;nbsp;=&amp;nbsp;new&amp;nbsp;PromptEntityOptions("\n请选择一个图块");&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;peo1.SetRejectMessage("\n选择的类型不正确");&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;peo1.AddAllowedClass(typeof(BlockReference),&amp;nbsp;true);&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;PromptEntityResult&amp;nbsp;per1&amp;nbsp;=&amp;nbsp;ed.GetEntity(peo1);&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;if&amp;nbsp;(per1.Status&amp;nbsp;==&amp;nbsp;PromptStatus.OK)&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;{&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;using&amp;nbsp;(Transaction&amp;nbsp;tran&amp;nbsp;=&amp;nbsp;db.TransactionManager.StartTransaction())&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;BlockReference&amp;nbsp;br&amp;nbsp;=&amp;nbsp;per1.ObjectId.GetObject(OpenMode.ForRead)&amp;nbsp;as&amp;nbsp;BlockReference;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AcadLine&amp;nbsp;l&amp;nbsp;=&amp;nbsp;per.ObjectId.GetObject(OpenMode.ForRead).AcadObject&amp;nbsp;as&amp;nbsp;AcadLine;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;BlockTableRecord&amp;nbsp;btr&amp;nbsp;=&amp;nbsp;br.BlockTableRecord.GetObject(OpenMode.ForRead)&amp;nbsp;as&amp;nbsp;BlockTableRecord;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;foreach&amp;nbsp;(ObjectId&amp;nbsp;entid&amp;nbsp;in&amp;nbsp;btr)&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;&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;&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;&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;AcadEntity&amp;nbsp;ent&amp;nbsp;=&amp;nbsp;(entid.GetObject(OpenMode.ForRead).AcadObject&amp;nbsp;as&amp;nbsp;AcadEntity).Copy()&amp;nbsp;as&amp;nbsp;AcadEntity;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;dynamic&amp;nbsp;count&amp;nbsp;=&amp;nbsp;l.IntersectWith(ent,&amp;nbsp;AcExtendOption.acExtendNone);&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;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;tran.Commit();&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;&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;&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;}&lt;/DIV&gt;</description>
      <pubDate>Sun, 06 Aug 2017 11:00:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/a-bug-of-intersectwith-in-autocad-2014/m-p/7279553#M30268</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-06T11:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: A bug of IntersectWith() in Autocad 2014!</title>
      <link>https://forums.autodesk.com/t5/net-forum/a-bug-of-intersectwith-in-autocad-2014/m-p/7279593#M30269</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is not a bug.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You're trying to use the IntersectWith method with entities that do not belong to the same owner:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;the line owner is the the current space BlockTableRecord ;&lt;/LI&gt;
&lt;LI&gt;the other entities owner is the selected block reference BlockTableRecord.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;If you want to get the intersection points between the line and the block reference components, you may explode the block reference and check for intersection with the resulting entities.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS: you do not need to use the COM IntersectWith() method, the .NET API provides one.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Aug 2017 12:08:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/a-bug-of-intersectwith-in-autocad-2014/m-p/7279593#M30269</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2017-08-06T12:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: A bug of IntersectWith() in Autocad 2014!</title>
      <link>https://forums.autodesk.com/t5/net-forum/a-bug-of-intersectwith-in-autocad-2014/m-p/7279698#M30270</link>
      <description>&lt;P&gt;You can try something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;            Document doc = Application.DocumentManager.MdiActiveDocument;
            Database db = doc.Database;
            Editor ed = doc.Editor;
            PromptEntityOptions peo = new PromptEntityOptions("\n请选择一条直线");
            peo.SetRejectMessage("\n选择的类型不正确");
            peo.AddAllowedClass(typeof(Line), true);
            PromptEntityResult per = ed.GetEntity(peo);
            if (per.Status == PromptStatus.OK)
            {
                PromptEntityOptions peo1 = new PromptEntityOptions("\n请选择一个图块");
                peo1.SetRejectMessage("\n选择的类型不正确");
                peo1.AddAllowedClass(typeof(BlockReference), true);
                PromptEntityResult per1 = ed.GetEntity(peo1);
                if (per1.Status == PromptStatus.OK)
                {
                    using (Transaction tran = db.TransactionManager.StartTransaction())
                    {
                        var br = (BlockReference)tran.GetObject(per1.ObjectId, OpenMode.ForWrite);
                        var l = (Line)tran.GetObject(per.ObjectId, OpenMode.ForRead);
                        var pts = new Point3dCollection();
                        using (var dbObjs = new DBObjectCollection())
                        {
                            br.Explode(dbObjs);
                            foreach (DBObject dbObj in dbObjs)
                            {
                                try
                                {
                                    var ent = (Entity)dbObj;
                                    ent.IntersectWith(l, Intersect.OnBothOperands, pts, IntPtr.Zero, IntPtr.Zero);
                                }
                                catch (System.Exception ex)
                                {
                                    ed.WriteMessage("\n" + ex.Message);
                                }
                                finally
                                {
                                    dbObj.Dispose();
                                }
                            }
                        }
                        var spaceBtr = (BlockTableRecord)tran.GetObject(db.CurrentSpaceId, OpenMode.ForWrite);
                        db.Pdmode = 32;
                        foreach (Point3d pt in pts)
                        {
                            var dbPt = new DBPoint(pt);
                            dbPt.ColorIndex = 30;
                            spaceBtr.AppendEntity(dbPt);
                            tran.AddNewlyCreatedDBObject(dbPt, true);
                        }
                        tran.Commit();
                        ed.Regen();
                    }
                }
            }&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Aug 2017 14:54:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/a-bug-of-intersectwith-in-autocad-2014/m-p/7279698#M30270</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2017-08-06T14:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: A bug of IntersectWith() in Autocad 2014!</title>
      <link>https://forums.autodesk.com/t5/net-forum/a-bug-of-intersectwith-in-autocad-2014/m-p/7279734#M30271</link>
      <description>&lt;P&gt;I try your code and i just found that error still alive...Did you use the drawing i given to test your code?&lt;/P&gt;</description>
      <pubDate>Sun, 06 Aug 2017 15:51:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/a-bug-of-intersectwith-in-autocad-2014/m-p/7279734#M30271</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-06T15:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: A bug of IntersectWith() in Autocad 2014!</title>
      <link>https://forums.autodesk.com/t5/net-forum/a-bug-of-intersectwith-in-autocad-2014/m-p/7279800#M30272</link>
      <description>&lt;P&gt;Yes I did and got this error with the text containd in the block. I thaught it was a font issue (I had a message about unknown fonts when openig this drawing)&lt;/P&gt;
&lt;P&gt;Anyway, this code worked fine with other blocks which also contain texts.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Aug 2017 17:08:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/a-bug-of-intersectwith-in-autocad-2014/m-p/7279800#M30272</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2017-08-06T17:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: A bug of IntersectWith() in Autocad 2014!</title>
      <link>https://forums.autodesk.com/t5/net-forum/a-bug-of-intersectwith-in-autocad-2014/m-p/7279807#M30273</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;&lt;P&gt;I try your code and i just found that error still alive...Did you use the drawing i given to test your code?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You need to be more specific. If you are getting an exception of eNotApplicable, you have to find out what API call is throwing it. Use try/catch or run the code in the debugger to find out.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Aug 2017 17:22:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/a-bug-of-intersectwith-in-autocad-2014/m-p/7279807#M30273</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2017-08-06T17:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: A bug of IntersectWith() in Autocad 2014!</title>
      <link>https://forums.autodesk.com/t5/net-forum/a-bug-of-intersectwith-in-autocad-2014/m-p/7279820#M30274</link>
      <description>&lt;P&gt;My mistake, testing more accurately, the exception seems to be thrown by the hatch.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try replacing:&lt;/P&gt;
&lt;PRE&gt;catch (System.Exception ex)
{
    ed.WriteMessage("\n" + ex.Message);
}&lt;/PRE&gt;
&lt;P&gt;with:&lt;/P&gt;
&lt;PRE&gt;catch (System.Exception ex)
{
    ed.WriteMessage("\n{0}: {1}", dbObj.GetType().Name, ex.Message);
}&lt;/PRE&gt;</description>
      <pubDate>Sun, 06 Aug 2017 17:42:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/a-bug-of-intersectwith-in-autocad-2014/m-p/7279820#M30274</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2017-08-06T17:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: A bug of IntersectWith() in Autocad 2014!</title>
      <link>https://forums.autodesk.com/t5/net-forum/a-bug-of-intersectwith-in-autocad-2014/m-p/7279837#M30275</link>
      <description>&lt;P&gt;Yes,you are right.when i try to test the line is intersectwith the hatch ,it will occur a error:enotapplicable.I don't kown why will be that.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Aug 2017 18:13:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/a-bug-of-intersectwith-in-autocad-2014/m-p/7279837#M30275</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-06T18:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: A bug of IntersectWith() in Autocad 2014!</title>
      <link>https://forums.autodesk.com/t5/net-forum/a-bug-of-intersectwith-in-autocad-2014/m-p/7280317#M30276</link>
      <description>&lt;P&gt;The error seems to be due to the SOLID hatch (try removing it from the block definition and all works fine).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The fact IntersectWith is not applicable with a SOLID hatch make sense for me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note this is not specific to AutoCAD 2014. I got the same exception with other versions of AutoCAD (2013 to 2018).&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2017 05:23:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/a-bug-of-intersectwith-in-autocad-2014/m-p/7280317#M30276</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2017-08-07T05:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: A bug of IntersectWith() in Autocad 2014!</title>
      <link>https://forums.autodesk.com/t5/net-forum/a-bug-of-intersectwith-in-autocad-2014/m-p/7314719#M30277</link>
      <description>Yes,you are right.Thanks a lot.</description>
      <pubDate>Mon, 21 Aug 2017 03:37:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/a-bug-of-intersectwith-in-autocad-2014/m-p/7314719#M30277</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-21T03:37:27Z</dc:date>
    </item>
  </channel>
</rss>

