Archicad C++ API
About Archicad add-on development using the C++ API.

revert APIIo_IsProcessCanceledID?

ReignBough
Enthusiast
is there a way to negate APIIo_IsProcessCanceledID? I am currently using this inside a for-loop:

if (ACAPI_Interface(APIIo_IsProcessCanceledID))
{
  reply = DGAlert(DG_WARNING,
    "WARNING!!!",
    "Do you really want to stop this operation?",
    "",
    "Yes",	// DG_OKAY
    "No");	// DG_CANCEL
  if (reply == DG_OK)
  {
    ACAPI_Interface(APIIo_CloseProcessWindowID);
    completed = DSE_Cancel;
    break;
  }
}
I am planning to put that on the else part but haven't found it in the documentation.

EDIT (2014-Sep-30)

BTW: Currently, when the user clicks the "No" button, the DGAlert() will always pop-up since ACAPI_Interface(APIIo_IsProcessCanceledID) is now true.
~ReignBough~
ARCHICAD 26 INT (from AC18)
Windows 11 Pro, AMD Ryzen 7, 3.20GHz, 32.0GB RAM, 64-bit OS
0 REPLIES 0

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!