License delivery maintenance is planned for Saturday, July 26, between 12:00 and 20:00 CEST. During this time, you may experience outages or limited availability across our services, including BIMcloud SaaS, License Delivery, Graphisoft ID (for customer and company management), Graphisoft Store, and BIMx Web Viewer. More details…

Archicad Python API
About automating tasks in Archicad using the Python API.

call an add-on from a python script

billatarcat
Participant

Does anyone have an example python script that calls / runs an add-on?

2 REPLIES 2
poco2013
Mentor

The Python API has no ability to call and run a C++ AddOn.

 

A Python script cam only communicate with a AddOn through a builtin function called -- ExecuteAddOnCommand - by passing certain parameters. However the AddOn must have pre-programmed and registered a class  to received the request. That class inherits from the AddOnCommand class.

An example of the Python function can be found on the Archicad PyPi site.

Archicad PyPi 

 

A typical example of the required C++ API class could be found on Tibor's old example site on GitHub.

GitHub 

 

 

Gerry

Windows 11 - Visual Studio 2022; ArchiCAD 27

Hi Gerry,  TY for the speedy response!  I will check out the links you provide.  Very helpful!