How to exit the underway progress?


#1

A progress costs a lot of time,how to exit it.

Can I use some dialog like the window in the image to Stop the underway progress?


#2

There is nothing in the API. You either need to write a Ruby C/C++ extension and create your own native threaded dialog, or you would need to slice your operation in parts and use a timer (UI.start_timer) - though the latter will make total running time slower.


#3

Having said that, if you want to import a SKP into the model there is a way to do display progress: http://www.sketchup.com/intl/en/developer/docs/ourdoc/definitionlist#load_from_url


#4

Thanks you thomthom! The UI.messagebox cannot be a thread,right?


#5

I found UI.messagebox will blocking the whole progress so that others have to wait.when you press the button,blocking will be ended.