<?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 include progress meter in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-include-progress-meter/m-p/7519872#M7466</link>
    <description>&lt;P&gt;thank you so much ..still wondering how to close this meter on process done .How to sync the things ?&lt;/P&gt;</description>
    <pubDate>Mon, 06 Nov 2017 12:31:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-11-06T12:31:15Z</dc:date>
    <item>
      <title>How to include progress meter</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-include-progress-meter/m-p/7519752#M7464</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to include progress meter in my processing to let the user wait until the process stops .How can I include it ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Pradeep&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 11:29:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-include-progress-meter/m-p/7519752#M7464</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-06T11:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to include progress meter</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-include-progress-meter/m-p/7519818#M7465</link>
      <description>&lt;P&gt;You could use the Progress Bar API. See core_rxmfcapi.h:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;// Progress Bar API

/* 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;/PRE&gt;</description>
      <pubDate>Mon, 06 Nov 2017 11:59:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-include-progress-meter/m-p/7519818#M7465</guid>
      <dc:creator>tbrammer</dc:creator>
      <dc:date>2017-11-06T11:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to include progress meter</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-include-progress-meter/m-p/7519872#M7466</link>
      <description>&lt;P&gt;thank you so much ..still wondering how to close this meter on process done .How to sync the things ?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 12:31:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-include-progress-meter/m-p/7519872#M7466</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-06T12:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to include progress meter</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-include-progress-meter/m-p/7519913#M7467</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;(...) how to close this meter on process done .How to sync the things ?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;To initialize: acedSetStatusBarProgressMeter(L"My progresss text", int nMinPos, int nMaxPos)&lt;/P&gt;
&lt;P&gt;You have to figure out yourself how nMinPos and nMaxPos are about to work for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To "sync": acedSetStatusBarProgressMeterPos(pos);&lt;/P&gt;
&lt;P&gt;To "close": acedRestoreStatusBar();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;int count = 123;
int progErr;
progErr = acedSetStatusBarProgressMeter(L"My Progress:", 0, count-1);

for (int i=0; i&amp;lt;count; ++i)
{
	DoMyStep(i); // &amp;lt;-- your code
	if (!progErr)
	    acedSetStatusBarProgressMeterPos(i);
}
if (!progErr)
	acedRestoreStatusBar();&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 Nov 2017 12:43:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-include-progress-meter/m-p/7519913#M7467</guid>
      <dc:creator>tbrammer</dc:creator>
      <dc:date>2017-11-06T12:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to include progress meter</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-include-progress-meter/m-p/7523061#M7468</link>
      <description>&lt;P&gt;I am wondering how to implement this . I mean do I need to keep this in a separate thread or I need to create a callback function which will show its progress each time an item ie part of item is being imported . What is the best approach ?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 09:22:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-include-progress-meter/m-p/7523061#M7468</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-07T09:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to include progress meter</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-include-progress-meter/m-p/7523087#M7469</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;I am wondering how to implement this . I mean do I need to keep this in a separate thread or I need to create a callback function which will show its progress each time an item ie part of item is being imported . What is the best approach ?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I gave a simple example in my last post. This could be within a long-running registered command-function.&lt;/P&gt;
&lt;P&gt;Just call &lt;FONT face="courier new,courier"&gt;acedSetStatusBarProgressMeterPos(pos)&lt;/FONT&gt; whenever another piece of work is done. No callbacks or separate threads needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure whether the progress bar API would work when called from another thread because ObjectARX is single-threaded.&lt;/P&gt;
&lt;P&gt;Is the process for which you want to display the progress running in a registered command?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 09:36:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-include-progress-meter/m-p/7523087#M7469</guid>
      <dc:creator>tbrammer</dc:creator>
      <dc:date>2017-11-07T09:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to include progress meter</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-include-progress-meter/m-p/9192646#M7470</link>
      <description>&lt;P&gt;Hi!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where is code of&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;acedSetStatusBarProgressMeter?&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 08:22:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-include-progress-meter/m-p/9192646#M7470</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-10T08:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to include progress meter</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-include-progress-meter/m-p/9192667#M7471</link>
      <description>&lt;P&gt;Definition: &lt;STRONG&gt;core_rxmfcapi.h&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Linking: &lt;STRONG&gt;accore.lib&lt;/STRONG&gt; (for AutoCAD 2013+) or &lt;STRONG&gt;acad.lib&lt;/STRONG&gt; (for AutoCAD 2012-)&lt;/P&gt;
&lt;DIV id="s3gt_translate_tooltip_mini" class="s3gt_translate_tooltip_mini_box" style="background: initial !important; border: initial !important; border-radius: initial !important; border-spacing: initial !important; border-collapse: initial !important; direction: ltr !important; flex-direction: initial !important; font-weight: initial !important; height: initial !important; letter-spacing: initial !important; min-width: initial !important; max-width: initial !important; min-height: initial !important; max-height: initial !important; margin: auto !important; outline: initial !important; padding: initial !important; position: absolute; table-layout: initial !important; text-align: initial !important; text-shadow: initial !important; width: initial !important; word-break: initial !important; word-spacing: initial !important; overflow-wrap: initial !important; box-sizing: initial !important; display: initial !important; color: inherit !important; font-size: 13px !important; font-family: X-LocaleSpecific, sans-serif, Tahoma, Helvetica !important; line-height: 13px !important; vertical-align: top !important; white-space: inherit !important; left: 216px; top: 35px; opacity: 0.6;"&gt;
&lt;DIV id="s3gt_translate_tooltip_mini_logo" class="s3gt_translate_tooltip_mini" title="Перевести выделенный фрагмент"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="s3gt_translate_tooltip_mini_sound" class="s3gt_translate_tooltip_mini" title="Прослушать"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="s3gt_translate_tooltip_mini_copy" class="s3gt_translate_tooltip_mini" title="Скопировать текст в буфер обмена"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 10 Dec 2019 08:31:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-include-progress-meter/m-p/9192667#M7471</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2019-12-10T08:31:24Z</dc:date>
    </item>
  </channel>
</rss>

