<?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 read last (let's say) 10 lines in command line using vb net in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/how-to-read-last-let-s-say-10-lines-in-command-line-using-vb-net/m-p/2803280#M63403</link>
    <description>&lt;P&gt;Kerry and Jeffrey,&lt;/P&gt;&lt;P&gt;Thanks, Very much, After 3 hours try and error I made that works. I am not a professiional programmer and not familiar with terminology. I had to see an actual example but the keywork Kerry provided was helpful and that was exactly what I wanted. Again thank you gentlemen&amp;nbsp;. You helped me to keep my new job.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Oct 2010 03:38:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-10-21T03:38:06Z</dc:date>
    <item>
      <title>How to read last (let's say) 10 lines in command line using vb net</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-read-last-let-s-say-10-lines-in-command-line-using-vb-net/m-p/2801680#M63397</link>
      <description>&lt;P&gt;Hello there. I know How to write&amp;nbsp;to &amp;nbsp;command line in Autocad using &amp;nbsp;vb net.&lt;/P&gt;&lt;P&gt;for example&amp;nbsp;following command write to command line&amp;nbsp;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;DocumentManager.MdiActiveDocument.Editor.WriteMessage(vbNewLine &amp;amp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" color="#a31515" size="2"&gt;&lt;FONT face="Consolas" color="#a31515" size="2"&gt;&lt;FONT face="Consolas" color="#a31515" size="2"&gt;"Hello World!"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; &amp;amp; vbNewLine&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now my Question is ,how I can read last 10 lines in command line and put them in a variable for later use?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any suggestion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2010 02:39:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-read-last-let-s-say-10-lines-in-command-line-using-vb-net/m-p/2801680#M63397</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-20T02:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to read last (let's say) 10 lines in command line using vb net</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-read-last-let-s-say-10-lines-in-command-line-using-vb-net/m-p/2801702#M63399</link>
      <description>&lt;P&gt;Are you wanting to prompt for the 10 lines?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2010 03:33:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-read-last-let-s-say-10-lines-in-command-line-using-vb-net/m-p/2801702#M63399</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-20T03:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to read last (let's say) 10 lines in command line using vb net</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-read-last-let-s-say-10-lines-in-command-line-using-vb-net/m-p/2801732#M63400</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't have time to play, but have a look at this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE cellpadding="0" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;PRE&gt;&lt;FONT color="#1000a0"&gt;public&lt;/FONT&gt; &lt;FONT color="#1000a0"&gt;static&lt;/FONT&gt; &lt;A target="_blank" rel="nofollow"&gt;List&lt;/A&gt;&amp;lt;&lt;A title="System.String" rel="nofollow" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.0.0:b77a5c561934e089/System.String"&gt;string&lt;/A&gt;&amp;gt; &lt;STRONG&gt;&lt;A target="_blank" rel="nofollow"&gt;GetLastCommandLines&lt;/A&gt;&lt;/STRONG&gt;(&lt;A title="System.Int32" rel="nofollow" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.0.0:b77a5c561934e089/System.Int32"&gt;int&lt;/A&gt; lastLines, &lt;A title="System.Boolean" rel="nofollow" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.0.0:b77a5c561934e089/System.Boolean"&gt;bool&lt;/A&gt; ignoreNull);&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE cellpadding="0" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Declaring Type:&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;Autodesk.AutoCAD.Internal.Utils&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Assembly:&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;acmgd, Version=18.1.0.0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 20 Oct 2010 04:58:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-read-last-let-s-say-10-lines-in-command-line-using-vb-net/m-p/2801732#M63400</guid>
      <dc:creator>kerry_w_brown</dc:creator>
      <dc:date>2010-10-20T04:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to read last (let's say) 10 lines in command line using vb net</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-read-last-let-s-say-10-lines-in-command-line-using-vb-net/m-p/2803238#M63401</link>
      <description>&lt;P&gt;No Jeffrey , I want the program read the content of command line , what ever it was there before.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2010 01:56:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-read-last-let-s-say-10-lines-in-command-line-using-vb-net/m-p/2803238#M63401</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-21T01:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to read last (let's say) 10 lines in command line using vb net</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-read-last-let-s-say-10-lines-in-command-line-using-vb-net/m-p/2803250#M63402</link>
      <description>&lt;P&gt;It looks like Mr. Brown answered your question in the post above.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2010 02:49:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-read-last-let-s-say-10-lines-in-command-line-using-vb-net/m-p/2803250#M63402</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-21T02:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to read last (let's say) 10 lines in command line using vb net</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-read-last-let-s-say-10-lines-in-command-line-using-vb-net/m-p/2803280#M63403</link>
      <description>&lt;P&gt;Kerry and Jeffrey,&lt;/P&gt;&lt;P&gt;Thanks, Very much, After 3 hours try and error I made that works. I am not a professiional programmer and not familiar with terminology. I had to see an actual example but the keywork Kerry provided was helpful and that was exactly what I wanted. Again thank you gentlemen&amp;nbsp;. You helped me to keep my new job.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2010 03:38:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-read-last-let-s-say-10-lines-in-command-line-using-vb-net/m-p/2803280#M63403</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-21T03:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to read last (let's say) 10 lines in command line using vb net</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-read-last-let-s-say-10-lines-in-command-line-using-vb-net/m-p/2803296#M63404</link>
      <description>&lt;P&gt;No need to thank me I did not do anything.&lt;/P&gt;&lt;P&gt;But if your job was on the&amp;nbsp;line all you would have to do is post some code or show that you are trying and ask for a code example and I would have tried&amp;nbsp;or someone else would have helped you out.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2010 05:40:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-read-last-let-s-say-10-lines-in-command-line-using-vb-net/m-p/2803296#M63404</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-21T05:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to read last (let's say) 10 lines in command line using vb net</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-read-last-let-s-say-10-lines-in-command-line-using-vb-net/m-p/2803372#M63405</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Great to see that your issue is resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Could you post your sample code so that others may benefit.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Regards&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;..&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2010 08:33:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-read-last-let-s-say-10-lines-in-command-line-using-vb-net/m-p/2803372#M63405</guid>
      <dc:creator>kerry_w_brown</dc:creator>
      <dc:date>2010-10-21T08:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to read last (let's say) 10 lines in command line using vb net</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-read-last-let-s-say-10-lines-in-command-line-using-vb-net/m-p/2805502#M63406</link>
      <description>&lt;PRE&gt;Here is working code . I simplified it.&lt;/PRE&gt;&lt;PRE&gt; Sub Test()
        Dim commandline As System.Collections.Generic.List(Of String)
        Dim I As Integer
        Dim TempT As String
        ' Get most recent last 10 lines of command lines
        commandline = Autodesk.AutoCAD.Internal.Utils.GetLastCommandLines(10, True)
        For I = 0 To commandline.Count - 1
            TempT = Trim(commandline.Item(I))
            MsgBox(TempT)
        Next
    End Sub&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2010 19:10:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-read-last-let-s-say-10-lines-in-command-line-using-vb-net/m-p/2805502#M63406</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-22T19:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to read last (let's say) 10 lines in command line using vb net</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-read-last-let-s-say-10-lines-in-command-line-using-vb-net/m-p/9063881#M63407</link>
      <description>&lt;P&gt;or you could just read the logfile - find it with logfilename:&amp;nbsp;&amp;nbsp;&lt;A href="https://knowledge.autodesk.com/support/autocad/learn-explore/caas/CloudHelp/cloudhelp/2018/ENU/3PP-ACD18-MAST-WILEY/files/GUID-73740530-6262-4A2E-8952-C369868D645F-htm.html" target="_blank"&gt;https://knowledge.autodesk.com/support/autocad/learn-explore/caas/CloudHelp/cloudhelp/2018/ENU/3PP-ACD18-MAST-WILEY/files/GUID-73740530-6262-4A2E-8952-C369868D645F-htm.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 04:11:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-read-last-let-s-say-10-lines-in-command-line-using-vb-net/m-p/9063881#M63407</guid>
      <dc:creator>CADbloke</dc:creator>
      <dc:date>2019-10-03T04:11:13Z</dc:date>
    </item>
  </channel>
</rss>

