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

Script Mistake in "GDL Reference Guide" Founded

Anonymous
Not applicable
Script Mistake in Example on GDL Reference Guide > Miscellaneous > Global Variables > Free users' globals

Written:
TEXT2 0, 0, "(" + STR (GLOB_WORLD_ORIGO_OFFSET_X + SYMB_POS_X, 9, 4) + "; " + STR
(GLOB_WORLD_ORIGO_OFFSET_Y + SYMB_POS_Y, 9, 4)" )"TEXT2 0, 0.5, "Object Placement"

Correct is:
TEXT2 0, 0, STR(GLOB_WORLD_ORIGO_OFFSET_X + SYMB_POS_X, 9, 4) + " ;" + STR(GLOB_WORLD_ORIGO_OFFSET_Y + SYMB_POS_Y, 9, 4)
TEXT2 0, 0.5, "Object Placement"
2 REPLIES 2
Laszlo Nagy
Community Admin
Community Admin
You are right that it is not correct.
But I think they wanted parentheses to appear, so this would be more appropriate:

TEXT2 0, 0, "(" + STR (GLOB_WORLD_ORIGO_OFFSET_X + SYMB_POS_X, 9, 4) + "; " + STR(GLOB_WORLD_ORIGO_OFFSET_Y + SYMB_POS_Y, 9, 4)+" )"
TEXT2 0, 0.5, "Object Placement"
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-Ac28
Anonymous
Not applicable
laszlonagy wrote:
But I think they wanted parentheses to appear, so this would be more appropriate:
Correct

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!