[St...] Posted November 15, 2023 Share Posted November 15, 2023 I want to take a measurement on a part repeatedly. How can I cancel the script before the end? I used the "Info Dialog (Skript läuft weiter)" for this. Link to comment https://qualityforum.zeiss.com/topic/3429-system-exit/ Share on other sites More sharing options...
[Ma...] Posted November 17, 2023 Share Posted November 17, 2023 (edited) You can use gom.script.sys.close_user_defined_dialog (dialog=DIALOG) either from the dialog handler (e.g. by handling an 'Exit' button event) or anywhere else. Closing the dialog will end execution. Edited November 17, 2023 Link to comment https://qualityforum.zeiss.com/topic/3429-system-exit/#findComment-9547 Share on other sites More sharing options...
[Ma...] Posted December 18, 2023 Share Posted December 18, 2023 In general, you can terminate Python script execution with import sys ... sys.exit(0) Link to comment https://qualityforum.zeiss.com/topic/3429-system-exit/#findComment-9824 Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in