<?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 use  .Net to cutting double line automatic? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/how-to-use-net-to-cutting-double-line-automatic/m-p/2861090#M62630</link>
    <description>&lt;P&gt;do you mean "multiline"...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;jvj&lt;/P&gt;</description>
    <pubDate>Tue, 21 Dec 2010 00:22:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-12-21T00:22:14Z</dc:date>
    <item>
      <title>How to use  .Net to cutting double line automatic?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-use-net-to-cutting-double-line-automatic/m-p/2859200#M62629</link>
      <description>&lt;P&gt;hi,everyone. i&amp;nbsp;have some &amp;nbsp;trouble in .NET,the drawing blow ,the left&amp;nbsp; &amp;nbsp;is a double line ,the right&amp;nbsp;has two double line,one is at the end ,the other is at the middle,how can they cut&amp;nbsp;&amp;nbsp;automatic like this when drawing &amp;nbsp;these double lines?thanks&lt;BR /&gt;&lt;IMG title="QQ截图未命名.jpg" align="center" alt="QQ截图未命名.jpg" src="http://forums.autodesk.com/t5/image/serverpage/image-id/2612i6194588965A306E6/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2010 15:45:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-use-net-to-cutting-double-line-automatic/m-p/2859200#M62629</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-17T15:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to use  .Net to cutting double line automatic?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-use-net-to-cutting-double-line-automatic/m-p/2861090#M62630</link>
      <description>&lt;P&gt;do you mean "multiline"...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;jvj&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2010 00:22:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-use-net-to-cutting-double-line-automatic/m-p/2861090#M62630</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-21T00:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to use  .Net to cutting double line automatic?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-use-net-to-cutting-double-line-automatic/m-p/2861232#M62631</link>
      <description>&lt;P&gt;yes,multiline&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2010 07:49:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-use-net-to-cutting-double-line-automatic/m-p/2861232#M62631</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-21T07:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to use  .Net to cutting double line automatic?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-use-net-to-cutting-double-line-automatic/m-p/2863262#M62632</link>
      <description>&lt;P&gt;You could play with this code&lt;/P&gt;&lt;PRE&gt;    ''============================cut mline=====================
    &amp;lt;DllImport("acad.exe", BestFitMapping:=True, CallingConvention:=CallingConvention.Cdecl, CharSet:=CharSet.Auto)&amp;gt; _
    Private Shared Function acedCmd(ByVal vlist_in As System.IntPtr) As Integer
    End Function
    &amp;lt;CommandMethod("MCUT")&amp;gt; _
    Public Shared Sub CutMline()
        Dim db As Database = HostApplicationServices.WorkingDatabase

        Dim doc As Document = acApp.DocumentManager.MdiActiveDocument

        Dim ed As Editor = doc.Editor

        Dim tr As Transaction = db.TransactionManager.StartTransaction()

        Using tr

            Try

                Dim peo As New PromptEntityOptions(vbLf &amp;amp; "Select first mline:")

                peo.SetRejectMessage(vbLf &amp;amp; "Select mline only")

                peo.AddAllowedClass(GetType(Mline), True)

                Dim per As PromptEntityResult = ed.GetEntity(peo)

                If per.Status &amp;lt;&amp;gt; PromptStatus.OK Then

                    Return

                End If

                Dim fid As ObjectId = per.ObjectId

                peo.Message = vbLf &amp;amp; "Select second mline:"

                per = ed.GetEntity(peo)

                If per.Status &amp;lt;&amp;gt; PromptStatus.OK Then

                    Return

                End If

                Dim sid As ObjectId = per.ObjectId

                Dim ids As ObjectId() = New ObjectId(1) {}

                ids(0) = fid

                ids(1) = sid

                Dim obj1 As DBObject = tr.GetObject(fid, OpenMode.ForWrite)

                Dim obj2 As DBObject = tr.GetObject(sid, OpenMode.ForWrite)

                'acApp.SetSystemVariable("FILLETRAD", rad)

                acApp.SetSystemVariable("CMDECHO", 0)

                Dim buf As New ResultBuffer()

                buf.Add(New TypedValue(5005, "_-MLEDIT"))

                buf.Add(New TypedValue(5005, "CT")) ''&amp;lt;--change editing option here [CC/OC/MC/CT/OT/MT/CJ/AV/DV/CS/CA/WA]

                buf.Add(New TypedValue(5006, fid))

                buf.Add(New TypedValue(5006, sid))

                buf.Add(New TypedValue(5005, ""))

                acedCmd(buf.UnmanagedObject)

                buf.Dispose()

                acApp.SetSystemVariable("CMDECHO", 1)

                tr.Commit()

            Catch ex As Autodesk.AutoCAD.Runtime.Exception

                ed.WriteMessage(ex.Message + vbLf + ex.StackTrace)

            End Try

        End Using
    End Sub&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800000"&gt;~'J'~&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2010 19:32:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-use-net-to-cutting-double-line-automatic/m-p/2863262#M62632</guid>
      <dc:creator>Hallex</dc:creator>
      <dc:date>2010-12-22T19:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to use  .Net to cutting double line automatic?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-use-net-to-cutting-double-line-automatic/m-p/2863680#M62633</link>
      <description>&lt;P&gt;thanks ,hallex.&lt;/P&gt;&lt;P&gt;i used the code you post,but it'does'nt work like i think.see the below pic.&lt;/P&gt;&lt;P&gt;&lt;IMG title="TM截图未命名.jpg" align="center" alt="TM截图未命名.jpg" src="http://forums.autodesk.com/t5/image/serverpage/image-id/2728iE4FA2BA7444CBCBF/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2010 04:32:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-use-net-to-cutting-double-line-automatic/m-p/2863680#M62633</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-23T04:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to use  .Net to cutting double line automatic?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-use-net-to-cutting-double-line-automatic/m-p/2863722#M62634</link>
      <description>&lt;P&gt;Change editing option&amp;nbsp;jn what you need:&amp;nbsp;CC/OC/MC/CT/OT/MT/CJ/AV/DV/CS/CA/WA&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2010 08:33:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-use-net-to-cutting-double-line-automatic/m-p/2863722#M62634</guid>
      <dc:creator>Hallex</dc:creator>
      <dc:date>2010-12-23T08:33:25Z</dc:date>
    </item>
  </channel>
</rss>

