Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Rotate an object when height changes?

JGoode
Expert
Hello!

I ideally want to rotate the middle part of the object when the object height changes so it moves with the object. First of all, is it even possible to be accurate with it? Secondly, has anyone had any experience with this type of object transformation? Lastly, if you do know how to make this work, then how? Obviously it would involve being able to rotate the object around a precise point and then work out the ratio of height to rotation. Any other information would be excellent.

Thanks very much!

Chair height example.jpg
ArchiCAD 23

Windows 10
1 REPLY 1
Erwin Edel
Rockstar
Assuming the arm that is moving has a fixed radius, this will help you with plotting out the coordinates.

Starting from the horizontal of your triangle, the x,y coords (looking at it in 2d plane) are

x = radius*COS(angle)
y = radius*SIN(angle)

so if you want to stretch Y, you need to make a stretchy hotspot that changes the angle.

Just a quick thought process thrown in a comment, hope it helps a bit.

Remember if you are doing any rotation from certain points to 'move' your origin in the 3D script there.
Erwin Edel, Project Lead, Leloup Architecten
www.leloup.nl

ArchiCAD 9-26NED FULL
Windows 10 Pro
Adobe Design Premium CS5