Choose your top Archicad wishes!

Read more
GDL
About building parametric objects with GDL.

Text in objects

Yvonne
Advocate
I have created a 2D object with an editable text box. How can I edit the object so the text will be readable when it gets rotated?
AC26 | Win11 | 64 bit | 32Gb RAM | Intel i9-9900K @ 3.60GHz
5 REPLIES 5
Lingwisyer
Guru
You could pull SYMB_ROTANGLE and use that to counter the object rotation or use n = REQUEST ("view_rotangle", "", angleViewRotation) to counter the View rotation.

If it is a Label you can use AC_bLabelAlwaysReadable.

Have a browse through the GDL Reference Guide, it is all there.



Ling.

AC22-23 AUS 7000Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win10 | R5 2600 | 16GB | GTX1660
DGSketcher
Legend
This may help...
http://gdl.graphisoft.com/tips-and-tricks/how-to-make-an-always-readable-text-cs
Apple iMac Intel i9 / macOS Sonoma / AC27UKI (most recent builds.. if they work)
Yvonne
Advocate
Lingwisyer wrote:
You could pull SYMB_ROTANGLE and use that to counter the object rotation or use n = REQUEST ("view_rotangle", "", angleViewRotation) to counter the View rotation.

If it is a Label you can use AC_bLabelAlwaysReadable.

Have a browse through the GDL Reference Guide, it is all there.



Ling.
Thanks Ling.
I'm new to this so still trying to wrap my head around GDLs.
Been trying to read up on it but still no idea where to enter the “View_Rotangle” request
AC26 | Win11 | 64 bit | 32Gb RAM | Intel i9-9900K @ 3.60GHz
Lingwisyer
Guru
The article that DGSketcher linked shows you how to set it out. Just replace the TEXT2 with what ever text and shapes you are wanting to rotate.



Ling.

AC22-23 AUS 7000Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win10 | R5 2600 | 16GB | GTX1660
Barry Kelly
Moderator
Yvonne wrote:
Been trying to read up on it but still no idea where to enter the “View_Rotangle” request

You only need to worry about “View_Rotangle” if you want to counter-act the rotation of the screen in Archicad.
If not, don't worry about it.

If you just want to counter-act the rotation of the object, then use -SYMB_ROTANGLE in your TEXTBLOCK command - for the 'angle' value in the TEXTBLOCK command.


Barry.
One of the forum moderators.
Versions 6.5 to 27
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11