Confirm/Abort Dialog Box

Next
 From:  fcwilt
11715.1 
Hi,

Is there a standard dialog that can be displayed prior to execution of a potentially very disruptive operation that can ask the user to confirm execution or allow canceling?

Thanks.

Frederick
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
11715.2 In reply to 11715.1 
Hi Frederick,

> Is there a standard dialog that can be displayed prior to execution of a potentially very disruptive
> operation that can ask the user to confirm execution or allow canceling?

There is not - things like that are usually generated internally by the GeometryFactory infrastructure in a separate process called moi_commandprocessor.exe instead of the main UI thread so that the cancel button in the UI remains responsive and clickable.

But that infrastructure is part of the internal C++ API, it isn't accessible by the script API.

If you have a long running script there is a mechanism that will try to exit it if you hold down the Esc key.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  fcwilt
11715.3 In reply to 11715.2 
Hi Michael,

Could you add a script function to V5 that could display a dialog asking for confirmation and simply return true or false?

Frederick
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  fcwilt
11715.4 In reply to 11715.2 
Hi again,

While I'm here I thought you might like to see what your recent help has led to.

I've got a minor tweak or two I'm thinking about but they all are meeting my needs right now.

Thanks for everything.

Frederick

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
11715.5 In reply to 11715.3 
Hi Frederick,

> Could you add a script function to V5 that could display a dialog asking for
> confirmation and simply return true or false?

You can make a dialog like that in a plug-in, see attached example.


re:
> While I'm here I thought you might like to see what your recent help has led to.

Great, I'm glad it's useful!

Thanks, - Michael
Attachments:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  fcwilt
11715.6 In reply to 11715.5 
Hi Michael,

I tried out your example with the "confirmation dialog" - it is just what I was envisioning.

Perfect.

Another tool for my toolbox.

Thanks.

Frederick
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All