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 C++ API
About Archicad add-on development using the C++ API.
SOLVED!

Call Window Tool via API

Martin Walter
Enthusiast

If the user clicks the Window Tool, then a preview of the last selected library part is shown and the element can be inserted with a click. How can I achieve this via the API by code?

 

 

window tool1.png

 

window tool2.png

AC22-27, Windows 11, i7-1355U, 32GB RAM, 2TB SSD
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
LChen
Graphisoft
Graphisoft

Hi, you can use ACAPI_Toolbox_SetToolBoxMode() command to force the Window tool to active, please check the Examples code Do_SetToolBoxMode () in Element_snippets.cpp.

HTH.

View solution in original post

1 REPLY 1
Solution
LChen
Graphisoft
Graphisoft

Hi, you can use ACAPI_Toolbox_SetToolBoxMode() command to force the Window tool to active, please check the Examples code Do_SetToolBoxMode () in Element_snippets.cpp.

HTH.