<?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 Explode a line? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/how-to-explode-a-line/m-p/2845478#M62803</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've spent some time away from AutoCAD .net&amp;nbsp;while working&amp;nbsp;within Revit .net&amp;nbsp; and was curious when did everything begin to derive from Curve?&amp;nbsp; That&amp;nbsp;is exactly what Revit's model structure does.&amp;nbsp; Starting to think that one day there will be a single CAD software that does it all $,$$$,$$$.$$.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;jvj&lt;/P&gt;</description>
    <pubDate>Tue, 07 Dec 2010 14:59:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-12-07T14:59:25Z</dc:date>
    <item>
      <title>How to Explode a line?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-explode-a-line/m-p/2844998#M62798</link>
      <description>&lt;P&gt;&lt;FONT size="3" face="arial,helvetica,sans-serif"&gt;hi,everyone:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="arial,helvetica,sans-serif"&gt;suppose i have drawed a line, and i 'd like to divide it into 3 lines,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="arial,helvetica,sans-serif"&gt;maybe i can use a point right on the line to decide where to cut this&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="arial,helvetica,sans-serif"&gt;line, could anyone help me? thanks&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2010 02:28:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-explode-a-line/m-p/2844998#M62798</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-07T02:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to Explode a line?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-explode-a-line/m-p/2845136#M62799</link>
      <description>&lt;P&gt;perhaps try the DIVIDE or MEASURE commands.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2010 08:23:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-explode-a-line/m-p/2845136#M62799</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-07T08:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to Explode a line?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-explode-a-line/m-p/2845212#M62800</link>
      <description>&lt;P&gt;Sir, thanks for answering my question. but i want my program to do this automatic, not by users,can you help me?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2010 10:23:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-explode-a-line/m-p/2845212#M62800</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-07T10:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to Explode a line?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-explode-a-line/m-p/2845242#M62801</link>
      <description>&lt;P&gt;The way I would normally achieve this is to delete the original line, and draw smaller lines of your own instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a brief tutorial for how to achieve this at the link below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://howtoautocad.com/break-a-line-into-smaller-pieces-using-vba-or-vb-net-in-autocad/" rel="nofollow" target="_blank"&gt;http://howtoautocad.com/break-a-line-into-smaller-pieces-using-vba-or-vb-net-in-autocad/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2010 11:25:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-explode-a-line/m-p/2845242#M62801</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-07T11:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to Explode a line?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-explode-a-line/m-p/2845322#M62802</link>
      <description>&lt;P&gt;Remember that a line is simply a Curve at its base. Thus you can use the Curve.GetSplitCurves method which will return a collection of DBObjects that you can append to the space. Hope this points you in the right direction. If you need more help, let us know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Using lck As DocumentLock = Application.DocumentManager.MdiActiveDocument.LockDocument
            Using db As Database = HostApplicationServices.WorkingDatabase
                Using trans As Transaction = db.TransactionManager.StartTransaction
                    Try
                        Dim cur As Curve = trans.GetObject(prEnt.ObjectId, OpenMode.ForWrite)
                        Dim pt3Dcol As New Point3dCollection
                        Dim endDist As Double = cur.GetDistAtPoint(cur.EndPoint)
                        Dim divLen As Double = endDist / 3.0
                        Dim pt As Point3d

                        For dbl As Double = 0.0 To endDist Step divLen
                            pt = cur.GetPointAtDist(dbl)
                            pt3Dcol.Add(pt)
                        Next

                        If pt3Dcol.Count = 0 Then GoTo TransEnd

                        Dim objCOl As DBObjectCollection = cur.GetSplitCurves(pt3Dcol)

                        Dim bt As BlockTable = trans.GetObject(db.BlockTableId, OpenMode.ForRead, False)
                        Dim btr As BlockTableRecord = trans.GetObject(bt(BlockTableRecord.ModelSpace), OpenMode.ForWrite, False)

                        If objCOl.Count &amp;gt; 0 Then
                            For Each dbObj As DBObject In objCOl
                                btr.AppendEntity(dbObj)
                                trans.AddNewlyCreatedDBObject(dbObj, True)
                            Next
                        End If

                        cur.Erase()

TransEnd:
                        trans.Commit()
                    Catch
                        trans.Abort()
                    End Try
                End Using
            End Using
        End Using&lt;/PRE&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2010 12:58:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-explode-a-line/m-p/2845322#M62802</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-07T12:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to Explode a line?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-explode-a-line/m-p/2845478#M62803</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've spent some time away from AutoCAD .net&amp;nbsp;while working&amp;nbsp;within Revit .net&amp;nbsp; and was curious when did everything begin to derive from Curve?&amp;nbsp; That&amp;nbsp;is exactly what Revit's model structure does.&amp;nbsp; Starting to think that one day there will be a single CAD software that does it all $,$$$,$$$.$$.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;jvj&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2010 14:59:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-explode-a-line/m-p/2845478#M62803</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-07T14:59:25Z</dc:date>
    </item>
  </channel>
</rss>

