<?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: How to break an entity using C# in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/how-to-break-an-entity-using-c/m-p/2244265#M74764</link>
    <description>Check out...&lt;BR /&gt;
Autodesk.AutoCAD.DatabaseServices.Curve.GetSplitCurves</description>
    <pubDate>Wed, 30 Apr 2008 17:56:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-04-30T17:56:37Z</dc:date>
    <item>
      <title>How to break an entity using C#</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-break-an-entity-using-c/m-p/2244264#M74763</link>
      <description>Hi, I have a line in the modelspace, and i want to program to break it at a point (already known).&lt;BR /&gt;
&lt;BR /&gt;
Thanks!</description>
      <pubDate>Wed, 30 Apr 2008 13:47:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-break-an-entity-using-c/m-p/2244264#M74763</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-04-30T13:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to break an entity using C#</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-break-an-entity-using-c/m-p/2244265#M74764</link>
      <description>Check out...&lt;BR /&gt;
Autodesk.AutoCAD.DatabaseServices.Curve.GetSplitCurves</description>
      <pubDate>Wed, 30 Apr 2008 17:56:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-break-an-entity-using-c/m-p/2244265#M74764</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-04-30T17:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to break an entity using C#</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-break-an-entity-using-c/m-p/2244266#M74765</link>
      <description>Thanks, it works. but i think it's a little complex. my code is attached below, do you have any idea to simple it?&lt;BR /&gt;
&lt;BR /&gt;
 Line line = new Line(new Point3d(100, 10, 0), new Point3d(200, 20, 0));&lt;BR /&gt;
            Tools.AddToCurrentSpace(line); //a sealed tool to help add entitys to modelspace&lt;BR /&gt;
          &lt;BR /&gt;
            Point3d[] arrP3s=new Point3d[1]{new Point3d(150, 15, 0)};&lt;BR /&gt;
            Point3dCollection p3c = new Point3dCollection(arrP3s);&lt;BR /&gt;
            DBObjectCollection dboc=line.GetSplitCurves(p3c);&lt;BR /&gt;
            IEnumerator enumDbOc=dboc.GetEnumerator();&lt;BR /&gt;
            while(enumDbOc.MoveNext())&lt;BR /&gt;
            {&lt;BR /&gt;
                Line lineTemp = (Line)enumDbOc.Current;&lt;BR /&gt;
                Tools.AddToCurrentSpace(lineTemp);&lt;BR /&gt;
            }&lt;BR /&gt;
&lt;BR /&gt;
            Tools.Erase(line.Id); //remove the entity from the modelspace by id.</description>
      <pubDate>Thu, 01 May 2008 02:54:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-break-an-entity-using-c/m-p/2244266#M74765</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-05-01T02:54:33Z</dc:date>
    </item>
  </channel>
</rss>

