License delivery maintenance is planned for Saturday, July 26, between 12:00 and 20:00 CEST. During this time, you may experience outages or limited availability across our services, including BIMcloud SaaS, License Delivery, Graphisoft ID (for customer and company management), Graphisoft Store, and BIMx Web Viewer. More details…

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

Changing layer of a railing, bug?

ReignBough
Enthusiast
When I change the layer of railing element (AC21) using ACAPI_Element_Change() funtion, the railing changes its appearance. My code:

API_Element elem, mask;
BNZeroMemory(&elem, API_ElementSize);
ACAPI_ELEMENT_MASK_CLEAR(mask);
ACAPI_ELEMENT_MASK_SET(mask, API_Elem_Head, layer);
elem.header.guid = /*railing element guid*/;
err = ACAPI_Element_Get(&elem);
elem.header.layer = /*new layer index*/;
err = ACAPI_Element_Change(&elem, &mask, NULL, NULL, true);
~ReignBough~
ARCHICAD 27 INT (since AC18)
Windows 11 Pro, AMD Ryzen 7, 3.20GHz, 32.0GB RAM, 64-bit OS
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Tibor Lorantfy
Graphisoft Alumni
Graphisoft Alumni
Hello,

thank you for pointing out this issue. Unfortunatelly it's a bug in our API.
We are working on the fix and hopefully it will be fixed in an upcoming update.

Regards,
Tibor

View solution in original post

1 REPLY 1
Solution
Tibor Lorantfy
Graphisoft Alumni
Graphisoft Alumni
Hello,

thank you for pointing out this issue. Unfortunatelly it's a bug in our API.
We are working on the fix and hopefully it will be fixed in an upcoming update.

Regards,
Tibor