Got a minute? We appreciate your feedback:

Graphisoft Learn survey
GDL
About building parametric objects with GDL.

How do I rotate objects acording to view rotation?

Odd Goderstad
Booster
I have some symbols that I want to rotate according to view rotation? I was thinking that a simple Rot2 command should do it, but how do I get the view rotation? Example please, I have been away from GDL writing for so many years...
🙂 Odd Goderstad
GS Norge
Oslo, Norway
Always the latest version ArchiCAD mostly on Windows
twitter: @OddGoderstad
1 ACCEPTED SOLUTION
2 REPLIES 2

Solution
David Maudlin
Virtuoso
Odd Goderstad:

From the GDL Reference Guide:
n = REQUEST ("view_rotangle", "", angleViewRotation)
Returns the rotation angle of the current view. Expression returns 0 and contains dummy return values (emtpy string or 0) if used in parameter script, causing additional warning
You can then use the returned value to rotate all or part of the object.

David
David Maudlin / Architect
www.davidmaudlin.com
Digital Architecture
AC27 USA • iMac 27" 4.0GHz Quad-core i7 | 24 gb ram • MacBook Pro 2.8GHz | 16 gb ram • OSX11.7.10

Odd Goderstad
Booster
Thanks a lot, I will try
🙂 Odd Goderstad
GS Norge
Oslo, Norway
Always the latest version ArchiCAD mostly on Windows
twitter: @OddGoderstad

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!