cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
S_ISHIKAWA
Participant

ACAPI_ProcessWindow_IsProcessCanceled from AC27 C++ API

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?

 

2 Solutions

Accepted Solutions
Hiromichi Shinkawa
Graphisoft
Graphisoft

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.

Go to post

S_ISHIKAWA
Participant

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.

Go to post

2 Replies 2
Hiromichi Shinkawa
Graphisoft
Graphisoft

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.

S_ISHIKAWA
Participant

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.

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!