Re: Stop Box to abort code execution

There are four functions available that have some effect on this. Full details are available in the Open C Reference, in the uf_abort chapter. These are also wrapped for use in NXOpen.Net.

However, none of them really gives you complete control over this. If you enable abort using one of these calls, then NX is free to post the work-in-progress dialog when it wants to. Note that there is no way to force it to post this dialog.

Then you can have a check in your code to ask for the flag status, to see if the user tried to abort. It is up to you to provide any cleanup routines or undo to a suitable state when this happens. But to be clear, the dialog may or may not appear when abort is enabled.