2024-10-23 09:55 AM
I want to detect the cancellation of a process window.
Even if I use the function ACAPI_ProcessWindow_IsProcessCanceled, it keeps returning 0 even if I click to cancel, and I am not able to detect the cancellation.
This function has been changed from AC27 in the function name and other calling methods, but are there any conditions for this function to detect process window cancellations?
Or is there another way?
Solved! Go to Solution.
2024-11-13 09:53 AM
Hi, There are some sample code in API Examples which using ACAPI_ProcessWindow_IsProcessCanceled(), like ModelAccess_Test_Exportor.cpp, could you try whether it works on your pc?
HTH.
2024-11-14 05:38 AM
Thank you very much.
I tried several patterns and the only time I could not cancel was when I was calling another add-on function, such as when I was doing DXF output.
In that case, when I clicked in the process window, I found that “ACAPI_AddOnAddOnCommunication_Call” which calls the add-on returned a cancellation instead of ACAPI_ProcessWindow_IsProcessCanceled I was able to solve the problem.
2024-11-13 09:53 AM
Hi, There are some sample code in API Examples which using ACAPI_ProcessWindow_IsProcessCanceled(), like ModelAccess_Test_Exportor.cpp, could you try whether it works on your pc?
HTH.
2024-11-14 05:38 AM
Thank you very much.
I tried several patterns and the only time I could not cancel was when I was calling another add-on function, such as when I was doing DXF output.
In that case, when I clicked in the process window, I found that “ACAPI_AddOnAddOnCommunication_Call” which calls the add-on returned a cancellation instead of ACAPI_ProcessWindow_IsProcessCanceled I was able to solve the problem.