BIM Coordinator Program (INT) April 22, 2024
Find the next step in your career as a Graphisoft Certified BIM Coordinator!
Archicad C++ API
About Archicad add-on development using the C++ API.

Rotating objects on their own axis

Anonymous
Not applicable
Hi,
I want to write a function that rotates the selected elements in the same angle, but each on their own axis of rotation.

I tried iterating through each of the api_neigs of the selected elements, and getting their corresponding element instance, from which i take the objects position. It seemed to work alright

The problem is i can't get them to rotate, each on on a different pivot. The edit function doesn't work when i try to insert each to a new neig array. Maybe i didn't instantiate the arrays correctly.

Could someone help?

Thanks a lot!!!
1 REPLY 1
Ralph Wessel
Mentor
Sorry, which rotation function are you trying to use? Do you have some sample code to illustrate what you're trying to do?
Ralph Wessel BArch
Learn and get certified!