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

2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations

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

Text2 to show variable Integer?

JGoode
Expert
I can't seem to get it to work so any help would be much appreciated.
I've tried creating a str but it doesn't seem to work.
Thanks
ArchiCAD 23

Windows 10
2 REPLIES 2
Barry Kelly
Moderator
Here is an example straight from the GDL manual...
Example:
a=4.5
b=2.345
TEXT2 0, 2, STR(a, 8, 2) ! 4.50
TEXT2 0, 1, STR(b, 8, 2) ! 2.34
TEXT2 0, 0, STR(a*b, 8, 2) ! 10.55
Is something like this not working for you?

Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
JGoode
Expert
Barry wrote:
Here is an example straight from the GDL manual...
Example:
a=4.5
b=2.345
TEXT2 0, 2, STR(a, 8, 2) ! 4.50
TEXT2 0, 1, STR(b, 8, 2) ! 2.34
TEXT2 0, 0, STR(a*b, 8, 2) ! 10.55
Is something like this not working for you?

Barry.
No it wasn't working but it was just a simple TEXT2 0, 0, variable so it's all fixed now
ArchiCAD 23

Windows 10