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