BIM Coordinator Program (INT) April 22, 2024

Find the next step in your career as a Graphisoft Certified BIM Coordinator!

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);
AC23, Windows 10, i7-6700HQ, 8Gb RAM, 500Gb 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
AC23, Windows 10, i7-6700HQ, 8Gb RAM, 500Gb SSD
Learn and get certified!