cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
ReignBough
Enthusiast

Changing layer of a railing, bug?

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 Solution

Accepted Solutions
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

Go to post

1 Reply 1
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

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!