2024-02-05 09:12 AM - last edited on 2024-09-17 01:10 PM by Doreena Deng
Archicad26 / API Development Kit 26.3000 / Windows10
Use 'ACAPI_Element_Change()' on a column whose 'coreAnchor' is other than 4, it will be moved in parallel.
This can be confirmed with "Do_Change_ElemParameters()" in the SDK "Element_Test".
Is there a way to avoid this problem?
Solved! Go to Solution.
2024-06-06 03:13 AM
I see, I've asked our API developer to check whether it's an bug issue. As a workaround, I'd suggest you to shift origoPos to anchor point before calling ACAPI_Element_Change() if the anchor is not 4 in this case.
For example:
ACAPI_ELEMENT_MASK_SET(mask, API_ColumnType, origoPos);
element.column.origoPos.x (+-) = half of column width;
element.column.origoPos.y (+-) = half of column depth;
err = ACAPI_Element_Change();
HTH.
2024-02-06 03:12 AM
Confirmed the same problem with Archicad27.
Archicad27 / API Development Kit 27.3001 / Windows10
2024-02-13 03:10 PM
Does anyone other than me have this problem?
Or am I misunderstanding something?
Any advice would be helpful.
2024-05-31 11:30 AM
Hi,
I'm not clear what the problem you mentioned. When you try to modify a column coreAnchor=4 to coreAnchor=6, it means the left bottom corner of column will be moved to the position of the center of colmun because you didn't change the origoPos.
HTH
2024-06-05 03:30 AM
Let me explain the procedure.
1. Draw a column.
2. In the column settings(ctrl+T), change the anchor to something other than the center.
3. Execute "Do_Change_ElemParameters()" in the SDK "Element_Test" on the column.
4. The column will move.
(If the column anchor is at the center it not move.)
2024-06-05 12:47 PM
Sorry I couldn't reproduce this issue following your steps, I'd suggest you update AC27 to the latest release(27.2.1) and try again.
HTH
2024-06-05 05:32 PM - last edited on 2024-06-10 03:37 PM by Laszlo Nagy
This issue occurs even in the latest environment.
Archicad solo 27 (version 27.2.1)(5031) / API Development Kit 27.3001 / Windows10
2024-06-06 03:13 AM
I see, I've asked our API developer to check whether it's an bug issue. As a workaround, I'd suggest you to shift origoPos to anchor point before calling ACAPI_Element_Change() if the anchor is not 4 in this case.
For example:
ACAPI_ELEMENT_MASK_SET(mask, API_ColumnType, origoPos);
element.column.origoPos.x (+-) = half of column width;
element.column.origoPos.y (+-) = half of column depth;
err = ACAPI_Element_Change();
HTH.
2024-06-06 07:02 AM
Thank you for providing the workaround.
Hopefully this issue will be resolved in Archicad 28.