cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
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

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

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.