[Ha...] Posted August 22, 2018 Share Posted August 22, 2018 Hi, Is there a way to get the CNC to break or inspection to end when you press the close button (x) on windows like inquireParameterList or confirm..? Thanks! Hanna Link to comment Share on other sites More sharing options...
[Er...] Posted August 22, 2018 Share Posted August 22, 2018 Yes, a simple way is to check if the variable you are asking for has changed from the initial value. And use endInspection() instead of cncBreak(), that one is so "violent". orka="defalutValue" inquireParameterList("orka","a comment") if orka == "defalutValue" endInspection() endif But the confirm dialog requires a yes or no answer, the x is inactive, isn't it? If you know how to, you can make use of the dialog class, and make a answer required to be able to proceed. But that's overkill. Link to comment Share on other sites More sharing options...
[Ha...] Posted November 26, 2018 Author Share Posted November 26, 2018 Thanks for your reply Eric! (I didn't notice I got an snswer until now) The problem is that 95 % of the time, the parameters will not change. I will only confirm that the variables are the same. You are right regarding the inactive x with confirm dialog. Link to comment 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