<?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 acutPrintf does not print to command line active prompt on the graphics screen in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/acutprintf-does-not-print-to-command-line-active-prompt-on-the/m-p/9817462#M3939</link>
    <description>&lt;P&gt;I have a legacy ARX that provides feedback during a potentially time consuming process. The intention is for the feedback to appear in the command line active prompt on the graphics screen. The process involves moving texts so they don't clash.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The feedback provides rolling numerical information on progress to the user.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;acutPrintf(_T("\r Trying to unclash text %i out of %i texts. Failed to unclash %i texts. Task %5.2f%% completed."), inttxt, maxtxt, notdone, per);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However,&amp;nbsp;acutPrintf does not produce any output on the graphics screen, but does produce output on the text screen.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="graphics screen during process" style="width: 977px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/834672i9869462D8E7D4FB4/image-size/large?v=v2&amp;amp;px=999" role="button" title="graphics screen during process.png" alt="graphics screen during process" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;graphics screen during process&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="text screen during process" style="width: 728px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/834673iCCF62BC690C1929D/image-size/large?v=v2&amp;amp;px=999" role="button" title="text screen during process.png" alt="text screen during process" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;text screen during process&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this output is constantly updated one text at a time during the process.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;acutPrintf output is eventually produced above the command line, but only when the process has completed...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="graphics screen after process" style="width: 973px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/834691iD8614A03A743F811/image-size/large?v=v2&amp;amp;px=999" role="button" title="graphics screen after process.png" alt="graphics screen after process" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;graphics screen after process&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="text screen after process" style="width: 723px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/834693i199881276FB2FA50/image-size/large?v=v2&amp;amp;px=999" role="button" title="text screen after process.png" alt="text screen after process" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;text screen after process&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, if the user does not have the text screen visible, they receive no feedback until the process is compete.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;acedAlert behaves in an identical manner.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many years ago (probably around AutoCAD 2010) this feedback used to work as intended.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I do anything to get this feedback to&amp;nbsp;produce output on the graphics screen?&lt;/P&gt;</description>
    <pubDate>Thu, 22 Oct 2020 09:55:28 GMT</pubDate>
    <dc:creator>sjbarnes</dc:creator>
    <dc:date>2020-10-22T09:55:28Z</dc:date>
    <item>
      <title>acutPrintf does not print to command line active prompt on the graphics screen</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/acutprintf-does-not-print-to-command-line-active-prompt-on-the/m-p/9817462#M3939</link>
      <description>&lt;P&gt;I have a legacy ARX that provides feedback during a potentially time consuming process. The intention is for the feedback to appear in the command line active prompt on the graphics screen. The process involves moving texts so they don't clash.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The feedback provides rolling numerical information on progress to the user.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;acutPrintf(_T("\r Trying to unclash text %i out of %i texts. Failed to unclash %i texts. Task %5.2f%% completed."), inttxt, maxtxt, notdone, per);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However,&amp;nbsp;acutPrintf does not produce any output on the graphics screen, but does produce output on the text screen.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="graphics screen during process" style="width: 977px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/834672i9869462D8E7D4FB4/image-size/large?v=v2&amp;amp;px=999" role="button" title="graphics screen during process.png" alt="graphics screen during process" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;graphics screen during process&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="text screen during process" style="width: 728px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/834673iCCF62BC690C1929D/image-size/large?v=v2&amp;amp;px=999" role="button" title="text screen during process.png" alt="text screen during process" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;text screen during process&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this output is constantly updated one text at a time during the process.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;acutPrintf output is eventually produced above the command line, but only when the process has completed...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="graphics screen after process" style="width: 973px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/834691iD8614A03A743F811/image-size/large?v=v2&amp;amp;px=999" role="button" title="graphics screen after process.png" alt="graphics screen after process" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;graphics screen after process&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="text screen after process" style="width: 723px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/834693i199881276FB2FA50/image-size/large?v=v2&amp;amp;px=999" role="button" title="text screen after process.png" alt="text screen after process" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;text screen after process&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, if the user does not have the text screen visible, they receive no feedback until the process is compete.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;acedAlert behaves in an identical manner.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many years ago (probably around AutoCAD 2010) this feedback used to work as intended.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I do anything to get this feedback to&amp;nbsp;produce output on the graphics screen?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 09:55:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/acutprintf-does-not-print-to-command-line-active-prompt-on-the/m-p/9817462#M3939</guid>
      <dc:creator>sjbarnes</dc:creator>
      <dc:date>2020-10-22T09:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: acutPrintf does not print to command line active prompt on the graphics screen</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/acutprintf-does-not-print-to-command-line-active-prompt-on-the/m-p/9817539#M3940</link>
      <description>&lt;P&gt;As far as I remember "\r" is not working in AutoCAD command line. You can use string with many "\b" instead. So result will be such this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IFRAME src="https://screencast.autodesk.com/Embed/Timeline/7e43df29-e409-4bf6-a359-1ac8fefb9e59" width="696" height="655" frameborder="0" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you interesting with this source code - I can provide full project.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 10:24:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/acutprintf-does-not-print-to-command-line-active-prompt-on-the/m-p/9817539#M3940</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2020-10-22T10:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: acutPrintf does not print to command line active prompt on the graphics screen</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/acutprintf-does-not-print-to-command-line-active-prompt-on-the/m-p/9817612#M3941</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thank you Alexander.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Yes, please let me have your project.&amp;nbsp; I would like to see how you achieve your output.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Simply replacing "\r" with "\b" in my project altered the text screen output, but did nothing on the graphics screen.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 10:50:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/acutprintf-does-not-print-to-command-line-active-prompt-on-the/m-p/9817612#M3941</guid>
      <dc:creator>sjbarnes</dc:creator>
      <dc:date>2020-10-22T10:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: acutPrintf does not print to command line active prompt on the graphics screen</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/acutprintf-does-not-print-to-command-line-active-prompt-on-the/m-p/9817660#M3942</link>
      <description>&lt;P&gt;OK. I've attached project. Command Progress2 is in ProgressBarsEng.lsp&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 10:59:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/acutprintf-does-not-print-to-command-line-active-prompt-on-the/m-p/9817660#M3942</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2020-10-22T10:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: acutPrintf does not print to command line active prompt on the graphics screen</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/acutprintf-does-not-print-to-command-line-active-prompt-on-the/m-p/9817704#M3943</link>
      <description>&lt;P&gt;Thank you again Alexander.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could not open your project as I still use VS2017 for AutoCAD 2020, but I did read through the .lps &amp;amp; .cpp files included with the project, so I can see what is being done. Apologies for not making this clear before now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there no way to get&amp;nbsp;acutPrintf to print to the command line active prompt on the graphics screen during a command, other than creating a replacement method to write to the&amp;nbsp;command line active prompt?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 11:21:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/acutprintf-does-not-print-to-command-line-active-prompt-on-the/m-p/9817704#M3943</guid>
      <dc:creator>sjbarnes</dc:creator>
      <dc:date>2020-10-22T11:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: acutPrintf does not print to command line active prompt on the graphics screen</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/acutprintf-does-not-print-to-command-line-active-prompt-on-the/m-p/9817722#M3944</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4418930"&gt;@sjbarnes&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Is there no way to get&amp;nbsp;acutPrintf to print to the command line active prompt on the graphics screen during a command, other than creating a replacement method to write to the&amp;nbsp;command line active prompt?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I do not know other way. You can try to call acedPrompt(L"");&amp;nbsp; after acedPrintf(...) in order to refresh command line. But as I remember this method work only in very old versions of AutoCAD.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 11:30:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/acutprintf-does-not-print-to-command-line-active-prompt-on-the/m-p/9817722#M3944</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2020-10-22T11:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: acutPrintf does not print to command line active prompt on the graphics screen</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/acutprintf-does-not-print-to-command-line-active-prompt-on-the/m-p/9817754#M3945</link>
      <description>&lt;P&gt;How about using the progressmeter API functions of ObjectARX?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;/* acedSetStatusBarProgressMeter
 * Creates a progress meter on AutoCAD status bar.
 * Returns 0 if it successfully creates the label and progress meter. 
 * Otherwise -1
 */
int acedSetStatusBarProgressMeter(const ACHAR* pszLabel, int nMinPos, 
                                  int nMaxPos);
/* acedSetStatusBarProgressMeter
 * Call this with a positive value within the range specified to set 
 * the current position of the status bar.  
 * Pass a negative number to add an amount to the current position (relative).
 */
int acedSetStatusBarProgressMeterPos(int nPos);

/* acedRestoreStatusBar
 * Resets AutoCAD status bar
 */
void acedRestoreStatusBar();
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or if you intend to update the graphic screen you could try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;actrTransactionManager-&amp;gt;queueForGraphicsFlush();
actrTransactionManager-&amp;gt;flushGraphics();
acedUpdateDisplay(); &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make sure that you are not within a transaction when you call this.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 11:38:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/acutprintf-does-not-print-to-command-line-active-prompt-on-the/m-p/9817754#M3945</guid>
      <dc:creator>tbrammer</dc:creator>
      <dc:date>2020-10-22T11:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: acutPrintf does not print to command line active prompt on the graphics screen</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/acutprintf-does-not-print-to-command-line-active-prompt-on-the/m-p/9817862#M3946</link>
      <description>&lt;P&gt;There is an undocumented function (since AutoCAD 2015):&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;void __cdecl adsi_flushcommandline(void);&lt;/LI-CODE&gt;
&lt;P&gt;This function flush commandline, so if you call this function after calling acutPrintf(_T("\r..."), ...) - line will be refreshed in commandline. Try it.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 12:25:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/acutprintf-does-not-print-to-command-line-active-prompt-on-the/m-p/9817862#M3946</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2020-10-22T12:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: acutPrintf does not print to command line active prompt on the graphics screen</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/acutprintf-does-not-print-to-command-line-active-prompt-on-the/m-p/9817919#M3947</link>
      <description>&lt;P&gt;You are correct Alexander,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;acedPrompt(L""); did not work. It probably last worked around the same time that my&amp;nbsp;acutPrintf code worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 12:43:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/acutprintf-does-not-print-to-command-line-active-prompt-on-the/m-p/9817919#M3947</guid>
      <dc:creator>sjbarnes</dc:creator>
      <dc:date>2020-10-22T12:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: acutPrintf does not print to command line active prompt on the graphics screen</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/acutprintf-does-not-print-to-command-line-active-prompt-on-the/m-p/9817940#M3948</link>
      <description>&lt;P&gt;Thanks Thomas,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;actrTransactionManager-&amp;gt;queueForGraphicsFlush();&lt;/P&gt;&lt;P&gt;actrTransactionManager-&amp;gt;flushGraphics();&lt;/P&gt;&lt;P&gt;acedUpdateDisplay();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;did not work for me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;progressmeter is my fall back plan if I cannot get my customized numerical feedback to work.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 12:48:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/acutprintf-does-not-print-to-command-line-active-prompt-on-the/m-p/9817940#M3948</guid>
      <dc:creator>sjbarnes</dc:creator>
      <dc:date>2020-10-22T12:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: acutPrintf does not print to command line active prompt on the graphics screen</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/acutprintf-does-not-print-to-command-line-active-prompt-on-the/m-p/9817947#M3949</link>
      <description>&lt;P&gt;Try this sample code:&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;
&lt;LI-CODE lang="cpp"&gt;//-----------------------------------------------------------------------------
//----- acrxEntryPoint.cpp
//-----------------------------------------------------------------------------
#include "StdAfx.h"
#include "resource.h"

//-----------------------------------------------------------------------------
#define szRDS _RXST("")

void __cdecl adsi_flushcommandline(void);

int OnIdleAcadInternal(void) {
  CWinApp* app = acedGetAcadWinApp();
  CWnd* wnd = app-&amp;gt;GetMainWnd();
  MSG msg;
  while (::PeekMessage(&amp;amp;msg, wnd-&amp;gt;m_hWnd, 0, 0, PM_NOREMOVE)) {
    if (!app-&amp;gt;PumpMessage()) {
      ::PostQuitMessage(0);
      break;
    }
  }
  LONG lIdle = 0;
  //while (app-&amp;gt;OnIdle(lIdle++)&amp;amp;&amp;amp; lIdle &amp;lt; 1000);
  return RSRSLT;
}


//-----------------------------------------------------------------------------
//----- ObjectARX EntryPoint
class CTestCommandLineApp : public AcRxArxApp {

public:
  CTestCommandLineApp() : AcRxArxApp() {}

  virtual AcRx::AppRetCode On_kInitAppMsg(void* pkt) {
    AcRx::AppRetCode retCode = AcRxArxApp::On_kInitAppMsg(pkt);
    return (retCode);
  }

  virtual AcRx::AppRetCode On_kUnloadAppMsg(void* pkt) {
    AcRx::AppRetCode retCode = AcRxArxApp::On_kUnloadAppMsg(pkt);
    return (retCode);
  }

  virtual void RegisterServerComponents() { }

  static void RivilisTestCommandLine() {

    for (int i = 0; i &amp;lt;= 100; i++)
    {
      acutPrintf(_T("\rPercents: %d%%"), i); 
      OnIdleAcadInternal();
      adsi_flushcommandline();
      Sleep(100);
    }

  }
};

//-----------------------------------------------------------------------------
IMPLEMENT_ARX_ENTRYPOINT(CTestCommandLineApp)

ACED_ARXCOMMAND_ENTRY_AUTO(CTestCommandLineApp, Rivilis, TestCommandLine, TestCommandLine, ACRX_CMD_MODAL, NULL)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Video: &lt;A href="https://autode.sk/3m8ZrCs" target="_blank"&gt;https://autode.sk/3m8ZrCs&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 12:54:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/acutprintf-does-not-print-to-command-line-active-prompt-on-the/m-p/9817947#M3949</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2020-10-22T12:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: acutPrintf does not print to command line active prompt on the graphics screen</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/acutprintf-does-not-print-to-command-line-active-prompt-on-the/m-p/9818103#M3950</link>
      <description>&lt;P&gt;Thanks again Alexander,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to integrate your sample code into my project, but without&amp;nbsp;OnIdleAcadInternal() it did nothing other than slow down the process (probably down to sleep(100)). I could not successfully include&amp;nbsp;OnIdleAcadInternal()&amp;nbsp; as my project does not include MFC &amp;amp; making the changes so that&amp;nbsp;CWinApp* could be found created too many other problems.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 13:43:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/acutprintf-does-not-print-to-command-line-active-prompt-on-the/m-p/9818103#M3950</guid>
      <dc:creator>sjbarnes</dc:creator>
      <dc:date>2020-10-22T13:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: acutPrintf does not print to command line active prompt on the graphics screen</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/acutprintf-does-not-print-to-command-line-active-prompt-on-the/m-p/9818205#M3951</link>
      <description>&lt;P&gt;Sorry, but without using MFC there is no method to dispatch message loop in order AutoCAD can update it's UI.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 14:11:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/acutprintf-does-not-print-to-command-line-active-prompt-on-the/m-p/9818205#M3951</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2020-10-22T14:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: acutPrintf does not print to command line active prompt on the graphics screen</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/acutprintf-does-not-print-to-command-line-active-prompt-on-the/m-p/9818234#M3952</link>
      <description>&lt;P&gt;Alexander, thanks again for your continued good advice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In that case, I think I need to abandon my original plans to replicate the old command line output &amp;amp; replace with&amp;nbsp;&lt;SPAN&gt;progressmeter then implement different command line feedback when process is complete.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 14:21:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/acutprintf-does-not-print-to-command-line-active-prompt-on-the/m-p/9818234#M3952</guid>
      <dc:creator>sjbarnes</dc:creator>
      <dc:date>2020-10-22T14:21:44Z</dc:date>
    </item>
  </channel>
</rss>

