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();
Friday
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.