That is not an ObjectARX question but a general algorithm question.
What do you expect the meter to show in this case?
You must find a way to estimate which percentage of current job is done. How you do this is completely up to you. ObjectARX can't help you with this task.
const int n=1000;
acedSetStatusBarProgressMeter(L"Calculating", 0, 100*n);
while (working()) {
double percentage = PercentDone(); // 0..100
acedSetStatusBarProgressMeterPos((int)(n*percentage));
}
Depending on your PercentDone() function It may happen that the progress bar moves backwards sometimes.
Have a look at this article for some ideas how to handle this case.
Thomas Brammer ● Software Developer ● imos AG ● LinkedIn ●
If an answer solves your problem please [ACCEPT SOLUTION]. Otherwise explain why not.