We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

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

Rotate around specific point GDL

Anonymous
Not applicable
HI,

Is there any way to rotate model around specific point?

When I use this code, when i use tilt. The head don't rotate from the point I thought it would.

Please help me.

"
rotz Rot_z+180
rotx 180
roty tiltBeam

add -0.1035016104579/2,-0.1035016104579/2,0.1


call "Bolt_3D_HEAD_03",
PARAMETERS A = 0.1035016104579, B = 0.1035016104579, ZZYZX = 0.1201913133264"

rotate.JPG
3 REPLIES 3
Barry Kelly
Moderator
What you are doing is rotating your object and then moving it (ADD) away from you point of rotation.
This means it will end up in a different position based on your rotation.

If you want it to remain in one place then move it there first and then do the rotation.

Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Anonymous
Not applicable
Barry wrote:
What you are doing is rotating your object and then moving it (ADD) away from you point of rotation.
This means it will end up in a different position based on your rotation.

If you want it to remain in one place then move it there first and then do the rotation.

Barry.
I don't realy understand. But I have change some of the code.
But the rotate specific point is wrong.
sinceV6
Advocate
Hi.

I think the problem is in the called object. It looks like the origin point in the object (the blue dot in last picture I think) is not the point you want it to rotate about (the red dot). You have a few options:

1. Edit the called object so that the point of insertion is the point to be rotated about (in the called object use ADD to move the coordinate system so the object will move rotate this point... in other words, center your called object)

2. Know the offset that you have in your called object and move the origin point and rotate the coordinate system before each time you call it.

3. Do the above in a loop for the number of times you will call the object.

Hope that gives you a few ideas.

Best regards.