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

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 REPLY 1
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.