Developer forum
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Solution
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

AC24 USA • iMac 27" 4.0GHz Quad-core i7 | 24 gb ram • MacBook Pro 2.8GHz | 16 gb ram • OSX10.15.7

View solution in original post

2 REPLIES 2

Solution
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

AC24 USA • iMac 27" 4.0GHz Quad-core i7 | 24 gb ram • MacBook Pro 2.8GHz | 16 gb ram • OSX10.15.7

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

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!