<?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 Catching command window output with .NET-api in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/catching-command-window-output-with-net-api/m-p/9023171#M21290</link>
    <description>&lt;P&gt;Are there any way of catching the command window history/text in AutoCAD using the .NET API? I would like to be able to save it for debugging purposes.&lt;/P&gt;</description>
    <pubDate>Fri, 13 Sep 2019 08:08:06 GMT</pubDate>
    <dc:creator>ottosson_mathias</dc:creator>
    <dc:date>2019-09-13T08:08:06Z</dc:date>
    <item>
      <title>Catching command window output with .NET-api</title>
      <link>https://forums.autodesk.com/t5/net-forum/catching-command-window-output-with-net-api/m-p/9023171#M21290</link>
      <description>&lt;P&gt;Are there any way of catching the command window history/text in AutoCAD using the .NET API? I would like to be able to save it for debugging purposes.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2019 08:08:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/catching-command-window-output-with-net-api/m-p/9023171#M21290</guid>
      <dc:creator>ottosson_mathias</dc:creator>
      <dc:date>2019-09-13T08:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Catching command window output with .NET-api</title>
      <link>https://forums.autodesk.com/t5/net-forum/catching-command-window-output-with-net-api/m-p/9023194#M21291</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can play with the &lt;A href="https://knowledge.autodesk.com/support/autocad/learn-explore/caas/CloudHelp/cloudhelp/2019/ENU/AutoCAD-Core/files/GUID-C0C25385-F210-4834-B7D4-B29C2592D36A-htm.html" target="_blank" rel="noopener"&gt;LOGFILEMODE&lt;/A&gt; and &lt;A href="https://knowledge.autodesk.com/support/autocad/learn-explore/caas/CloudHelp/cloudhelp/2019/ENU/AutoCAD-Core/files/GUID-C0C25385-F210-4834-B7D4-B29C2592D36A-htm.html" target="_blank" rel="noopener"&gt;LOGFILENAME&lt;/A&gt; system variables.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2019 08:18:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/catching-command-window-output-with-net-api/m-p/9023194#M21291</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2019-09-13T08:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Catching command window output with .NET-api</title>
      <link>https://forums.autodesk.com/t5/net-forum/catching-command-window-output-with-net-api/m-p/9023239#M21292</link>
      <description>&lt;P&gt;Thanks. (Just fyi, both links goes to LOGFILEMODE)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So no api-access? I would like to analyze it in real-time in my add-in, and reading from a file feels a bit awkward.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2019 08:40:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/catching-command-window-output-with-net-api/m-p/9023239#M21292</guid>
      <dc:creator>ottosson_mathias</dc:creator>
      <dc:date>2019-09-13T08:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: Catching command window output with .NET-api</title>
      <link>https://forums.autodesk.com/t5/net-forum/catching-command-window-output-with-net-api/m-p/9023456#M21293</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3097704"&gt;@ottosson_mathias&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Are there any way of catching the command window history/text in AutoCAD using the .NET API? I would like to be able to save it for debugging purposes.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It is possible with ObjectARX: &lt;A href="https://adndevblog.typepad.com/autocad/2012/09/trapping-the-output-from-the-autocad-text-screen-command-prompt.html" target="_blank"&gt;https://adndevblog.typepad.com/autocad/2012/09/trapping-the-output-from-the-autocad-text-screen-command-prompt.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2019 10:50:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/catching-command-window-output-with-net-api/m-p/9023456#M21293</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2019-09-13T10:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Catching command window output with .NET-api</title>
      <link>https://forums.autodesk.com/t5/net-forum/catching-command-window-output-with-net-api/m-p/9027137#M21294</link>
      <description>&lt;P&gt;Autodesk.AutoCAD.Internal.Utils.GetLastCommandLines(int, bool)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;int lineCount = 20;
bool ignoreNull = true;
string cmds = "";
List&amp;lt;string&amp;gt; cmdLineList = Autodesk.AutoCAD.Internal.Utils.GetLastCommandLines(lineCount, ignoreNull);
cmdLineList.Reverse();
foreach (string str in cmdLineList)
{
  cmds += str + Environment.NewLine;
}
MessageBox.Show(cmds);&lt;/PRE&gt;</description>
      <pubDate>Mon, 16 Sep 2019 12:55:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/catching-command-window-output-with-net-api/m-p/9027137#M21294</guid>
      <dc:creator>jabowabo</dc:creator>
      <dc:date>2019-09-16T12:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Catching command window output with .NET-api</title>
      <link>https://forums.autodesk.com/t5/net-forum/catching-command-window-output-with-net-api/m-p/9030333#M21295</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1636004"&gt;@jabowabo&lt;/a&gt;, I'll try it in the coming days.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bonus question: Is it possible to get all the lines, not just a fixed amount?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 15:12:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/catching-command-window-output-with-net-api/m-p/9030333#M21295</guid>
      <dc:creator>ottosson_mathias</dc:creator>
      <dc:date>2019-09-17T15:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Catching command window output with .NET-api</title>
      <link>https://forums.autodesk.com/t5/net-forum/catching-command-window-output-with-net-api/m-p/9030339#M21296</link>
      <description>&lt;P&gt;The method takes an int parameter so you'll have to supply something. You could just give it a very high number like 999999 (unless you think you'll have more than a million lines&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face_with_tongue:"&gt;😜&lt;/span&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 15:16:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/catching-command-window-output-with-net-api/m-p/9030339#M21296</guid>
      <dc:creator>jabowabo</dc:creator>
      <dc:date>2019-09-17T15:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Catching command window output with .NET-api</title>
      <link>https://forums.autodesk.com/t5/net-forum/catching-command-window-output-with-net-api/m-p/9031875#M21297</link>
      <description>&lt;P&gt;This works.&lt;BR /&gt;&lt;BR /&gt;Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2019 08:46:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/catching-command-window-output-with-net-api/m-p/9031875#M21297</guid>
      <dc:creator>ottosson_mathias</dc:creator>
      <dc:date>2019-09-18T08:46:04Z</dc:date>
    </item>
  </channel>
</rss>

