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…
2023-04-10 07:10 PM
Does anyone have an example python script that calls / runs an add-on?
2023-04-10 07:50 PM
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.
A typical example of the required C++ API class could be found on Tibor's old example site on GitHub.
2023-04-10 08:30 PM
Hi Gerry, TY for the speedy response! I will check out the links you provide. Very helpful!