License delivery maintenance is planned for Saturday, July 26, between 12:00 and 20:00 CEST. During this time, you may experience outages or limited availability across our services, including BIMcloud SaaS, License Delivery, Graphisoft ID (for customer and company management), Graphisoft Store, and BIMx Web Viewer. More details…

GDL
About building parametric objects with GDL.
SOLVED!

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

Accepted Solutions
Solution
David Maudlin
Rockstar
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
AC28 USA • Mac mini M4 Pro OSX15 | 64 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14

View solution in original post

2 REPLIES 2
Solution
David Maudlin
Rockstar
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
AC28 USA • Mac mini M4 Pro OSX15 | 64 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14
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