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

check if window tool is active

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 check via the API by code, if this preview is actually shown or if the mouse arrow is shown?

 

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 monitor whether user switches to Window Tool by using ACAPI_Notification_CatchToolChange() command

and also, get the last selected window settings by ACAPI_Element_GetDefaults(), but I'm afraid you're not able to monitor the operation whether user moves the mouse on wall or not.

HTH.