Archicad C++ API
About Archicad add-on development using the C++ API.

Move Classification Item to New Parent

allen-work
Participant

Hello, I found API can let me specify the parent when doing ACAPI_Classification_CreateClassificationItem(). How about I change the parent afterwards? Thank you!

2 REPLIES 2

I haven't seen any "MoveClassificationItem" function. So I assume you would have to delete it and create it again at the different position again. The issue there is, that you might not be able to keep the same GUID for the item. So you'd loose all the connections to elements already classified by this classification item.
Though you might figure out some way to do it by experimenting with this approach and see which restrictions apply.

allen-work
Participant

Thank you for your checking.

You are right, I am not able to keep the original GUID, what I could do is to re-map within the transaction in order not to lose the context.