We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

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

SELECTING A TOOL FOR WINDOW INSERTION WITHOUT CHOOSING THE DIRECTION AND ORIENTATION

Martin Walter
Enthusiast
I'd like to use the insertion tool for inserting windows, but only for choosing the window centerpoint, the first part of the tool.
The second part for setting the direction and orientation must not be displayed, because the windows are not symmetrical.

I tried all variation ID's but all do the same.

API_ToolBoxItem tboxInfo;
BNZeroMemory(&tboxInfo, sizeof(API_ToolBoxItem));
tboxInfo.typeID = API_WindowID;
tboxInfo.variationID = APIVarId_Generic;
ACAPI_Environment(APIEnv_SetToolBoxModeID, &tboxInfo, nullptr);
AC22-27, Windows 11, i7-1355U, 32GB RAM, 2TB SSD
2 REPLIES 2
Podolsky
Ace
I think you can block some of these functions in GDL object. There is a variables that need to be set as parameters:
ac_wido_flip_once
ac_wido_flip_disable
ac_wido_mirror_once

Check GDL manual. It in section Miscellaneous / Fix named optional parameters / Parameter read by ArchiCAD / Door/Window objects
Martin Walter
Enthusiast
Using ac_wido_flip_disable is a good start. This disables the flip button in the UI. But none of the parameters ac_wido_flip_once, ac_wido_flip_disable, ac_wido_mirror_once prevents from showing the arrows, when placing the window
AC22-27, Windows 11, i7-1355U, 32GB RAM, 2TB SSD