cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Archicad C++ API
About Archicad add-on development using the C++ API.

Rotating objects on their own axis

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
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
Central Innovation