BIM Coordinator Program (INT) April 22, 2024

Find the next step in your career as a Graphisoft Certified BIM Coordinator!

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

Testing to Relative coordinates in GDL

Bruce
Expert
How can I test the rotation of a 2D symbol I've scripted against the rotated screen orientation, as opposed to the original rotation?

I can't find anything in the GDL reference about rotated orientation.
Bruce Walker
www.brucepwalker.com
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC27 5003 INT Full | Windows 11 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb
7 REPLIES 7
Laszlo Nagy
Community Admin
Community Admin
Use the TEXT2 GDL command in the 2D Script to display the SYMB_ROTANGLE global variable.
I suspect the orientation change will have no effect on the value returned by this variable but you should try to make sure.
TEXT2 0,0,SYMB_ROTANGLE
Edit: You may want to check out this post, Frank Breister mentions a bug related to exactly this GDL global variable.

http://archicad-talk.graphisoft.com/viewtopic.php?t=32721
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac27
Bruce
Expert
Yeah - this gives the rotation angle based on the default orientation. Ta anyway
Bruce Walker
www.brucepwalker.com
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC27 5003 INT Full | Windows 11 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb
Laszlo Nagy
Community Admin
Community Admin
Ah, you want to do something that is always horizontal regardless of the orientation rotation?
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac27
Bruce
Expert
Yeah, something like that.
Bruce Walker
www.brucepwalker.com
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC27 5003 INT Full | Windows 11 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb
Laszlo Nagy
Community Admin
Community Admin
I see.
I checked the GDL Docs for both AC13 and 14 and there does not seem to be such a GDL variable:

http://download.graphisoft.com/ftp/techsupport/documentation/developer_docs/BasicLibraryDoc/14/

You may want to create a wish for that.
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac27
Bruce
Expert
Aha! Found it.

Page 297 of the v13 GDL reference guide:

REQUEST ("view_rotangle", "", angleViewRotation)

Returns the rotation angle of the current view.

Cool
Bruce Walker
www.brucepwalker.com
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC27 5003 INT Full | Windows 11 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb
Laszlo Nagy
Community Admin
Community Admin
Oh, that's good you found it.
I thought it should be a Global variable, I didn't think that it could also be obtained by a REQUEST function as well.
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac27
Learn and get certified!