ProgressDialog not showing

ProgressDialog not showing

ttump
Explorer Explorer
1,400 Views
2 Replies
Message 1 of 3

ProgressDialog not showing

ttump
Explorer
Explorer

Hi, I've just started using the API to write a script and have a problem with the progressDialog not showing. A simplified version of the Python code is below.

The message box displays and the breaklink code works but the progressDialog doesn't appear

Any help much appreciated.

Tony

Progress.png

 

0 Likes
Accepted solutions (1)
1,401 Views
2 Replies
Replies (2)
Message 2 of 3

p.seem
Advocate
Advocate
Accepted solution

Tony,

 

I'll admit I haven't tested this as I'm far too lazy to retype your code (you can insert code with the </> button in the forum post, instead of an image, which will leave it both nicely formatted and selectable), but just from looking at it, the issue might simply be that the UI is busy and unresponsive the entire time that the progressDialog is up.  Try adding and "adsk.doEvents()" after your progressDialog.show.

 

I hope that makes a difference.

Message 3 of 3

ttump
Explorer
Explorer

p.seem,

Thanks, you are exactly right. Works just fine.

Sorry for inserting an image (I'll engage brain before posting next time Smiley Happy )

Many thanks for taking the time to help a beginner.

 

Kind regards

Tony

0 Likes