Jump to content

CNCBreak by closing inquireParameterList


---
 Share

Recommended Posts

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

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

  • 3 months later...
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

 Share

×
×
  • Create New...