Begin your Archicad journey with our free learning path - perfect for newcomers and experienced users looking to strenghten their skills.

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

How to make plugins run automatically

sxs
Booster

  Hi,everyone.

  I want to create an automation plugin which means that once Archicad completes opening the model file, the plugin will run directly without any user intervention like clicking menu button.

  I don't know how to do that.Please give me some suggestions;

1 ACCEPTED SOLUTION

Accepted Solutions
3 REPLIES 3
sxs
Booster

  I have tried using it ACAPI_ProjectOperation_CatchProjectEvent(APINotify_AllInputFinished, NotificationHandler) Listening to the model open event, it was found that this API needs to be called in GSErrCode Initialize (void), and Initialize does not automatically execute after archicad opening the model and needs to be triggered by the user.

Solution
Oleg
Expert

"If you want to load an addon at start of archicad, you need to return APIAddon_Preload from CheckEnvirinment function."

 

Thank you, It works.

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!