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

Is there an "Idle" Event raising when API methods are safe to be executed?

LVirone Greisch
Booster

Hello,

 

I wonder if there is an "Idle" Event raising when API methods are safe to be executed?

 

My goal is to execute API methods when external Event (external to Archicad application) occur, without user input. I need to determine when it is safe to execute these methods to prevent Archicad to crash.

 

I've found this post but I don't find anything in the API documentation : https://community.graphisoft.com/t5/Archicad-C-API/Call-the-C-API-continuously-every-x-minutes/td-p/...

 

I've also found ponctual events but nothing telling me permanently when the API context is safe : ACAPI_ProjectOperation_CatchProjectEvent

 

Thanks

Virone Lorenzo
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Oleg
Expert

Maybe it helps


See the ACAPI_AddOnAddOnCommunication_CallFromEventLoop function

and ACAPI_AddOnAddOnCommunication_Test example

View solution in original post

1 REPLY 1
Solution
Oleg
Expert

Maybe it helps


See the ACAPI_AddOnAddOnCommunication_CallFromEventLoop function

and ACAPI_AddOnAddOnCommunication_Test example