ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

about acedSetStatusBarProgressMeter

1 REPLY 1
SOLVED
Reply
Message 1 of 2
475867377
275 Views, 1 Reply

about acedSetStatusBarProgressMeter

i do not know the Maximum position because i can not know the count until the caculating is completed. how to use acedSetStatusBarProgressMeter  in this case?

 
 
 
1 REPLY 1
Message 2 of 2
tbrammer
in reply to: 475867377

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 AGLinkedIn
If an answer solves your problem please [ACCEPT SOLUTION]. Otherwise explain why not.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Forma Design Contest


Autodesk Design & Make Report