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…
2025-04-01 01:38 PM
Good day everybody. I have stuck with an issue with updating doors' parameters.
Traditionally I update elements' properties by changing their memos and execute the functions in this order:
ACAPI_Element_GetMemo(element.header.guid, &memo, API_DoorID);
ACAPI_ELEMENT_MASK_CLEAR(mask);
ACAPI_ELEMENT_MASK_SET(mask, API_DoorType, openingBase.libInd);
<changing memo's values>
and finally I apply the change:
ACAPI_Element_Change(&element, &mask, &memo, APIMemoMask_AddPars, true);
However, the changes are not applied for some reason.
How do you update doors' parameters without creating a new door and deleting the old door and placing the new door on place of the old?
Thanks to all in advance for the help!
2025-04-07 04:34 AM
Hi, The problem may happens when gdl script doesn't executed again after parameters changed. I'd suggest you to use the following commands which can force AC to run gdl script with the updated values:
err = ACAPI_LibraryPart_OpenParameters(¶mOwner);
err = ACAPI_LibraryPart_ChangeAParameter(&chgParam);
err = ACAPI_LibraryPart_GetActParameters(&getParams);
ACAPI_LibraryPart_CloseParameters();
2025-06-06 10:34 AM
thank you for the proposal, however that did not resolve the issue.
I found however other thing that if I change parameters A, B or ZZYXZ - the changes are being seen. However, I am still unsure why when changing door parameters such as width, length and height does not do anything to it. All other elements like windows, objects and so on are affected by such change, except for doors.