We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

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

Suppressing Warning Message Dialog Box at Opening

Hoa Tu
Newcomer
Hi All,

I have an API which will open all the PLN files in the selected folder one at a time to process some tasks.

The API works fine until when it encounters a warning message dialog box such as duplicated library parts or missing file links etc.. in the opening of a file.

My question: Is there a way to suppress the warning messages so the API can loop through all the files without interruption by the warning messages.

Thanks,
Hoa
1 REPLY 1
akomporday
Graphisoft Alumni
Graphisoft Alumni
Hey,
If you use commands, such as ACAPI_Command_Call, you can pass the parameter 'silentMode' with true value, so no dialogue will appear until the command is finished.

err = ACAPI_Command_Call (&mdid, 'GDCO', 1, parHdl, nullptr, /* silentMode = */ true);
For more info, see:
http://archicadapi.graphisoft.com/documentation/acapi_command_externalcall