cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
2024 Technology Preview Program

2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations

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 26 INT (from 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