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.
SOLVED!

Creating window with fixed width and height

Martin Walter
Enthusiast
I create a library part of a window and put it into a wall by creating an element of it referencing the libary part index, setting width and height and calling ACAPI_Element_Create:

API_Element element;
...
element.window.openingBase.libInd = libPart.index;
element.window.openingBase.width = 1.230;
element.window.openingBase.height = 1.480;
...
ACAPI_Element_Create(&element, &memo);

The height and width of the resulting window element can be changed by dragging or by entering new value via the UI.
But I want the height and width of the window to be fixed. How is this possible?
AC23, Windows 10, i7-6700HQ, 8Gb RAM, 500Gb SSD
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Ralph Wessel
Mentor
This is probably best done in the GDL script, i.e. locking those parameters.
Ralph Wessel BArch

View solution in original post

2 REPLIES 2
Solution
Ralph Wessel
Mentor
This is probably best done in the GDL script, i.e. locking those parameters.
Ralph Wessel BArch
Martin Walter
Enthusiast
That works, thanks!
AC23, Windows 10, i7-6700HQ, 8Gb RAM, 500Gb SSD
Learn and get certified!