We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

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

GDL OBJECT / LABEL DISPLAYING X Y COORDINATES

Anonymous
Not applicable
HI ALL,

Hope someone can help me, I have done a good search but am having trouble finding a solution to my problem.. i am looking for a very simple object that displays the x and y coordinates of a point on my plan .. my aim to to export the list as a csv file then import it into a data base

I have really tried to solve this myself but am trouble?
hope someone can point me in right direction..
thanks,
Natalie (Arterra)
28 REPLIES 28
Anonymous
Not applicable
hi,

Thanks to everyone's help i have made some good progress today, Using ACAD14 solved a number of issues. The advice from Endre, Olivier, Juha, Sincev6, David and Roberto (including his locator object) has been invaluable.

I got the Tree Locator Object working, the x and y coordinates get published into a schedule, the schedule is used to fill another database which will be imported to Global Mapper for GIS export. A few things to iron out but not much.

At work tmw I will upload the object and a screen capture and hopefully this might help someone else.


Notable lessons : !

1 - modifying the locator script and declaring the parameters via the Masterscript (and using ACAD14) has made an object that continually updates where it's placed (NO MORE ZEROS!).
2 - using the GLOB_WORLD_ORIGO_OFFSET_X commands (per Juha) ensured the x and y were in global coordinates
3 - setting up the schedule ensure easy output to excel

my thanks, I'm really happy and grateful
Anonymous
Not applicable
Hi all,

As promised posting :
1) ACAD obj Tree Locator
2) screen shot of locator in use
3) schedule with x,y and Tree ID

thanks everyone
Anonymous
Not applicable
treelocator
Anonymous
Not applicable
schedule
sinceV6
Advocate
It's great, but in my opinion you should modify it a little more:
1. Make your treeID parameter a boolean, to show or not the ID.
2. Change your code:
gamma=treeID
to
gamma=GLOB_ID
so you can change the ID using the info box (skip opening the settings dialog, it's a real time saver)
3. Add the circle option.

Inspired, I added these simple changes to the object I use in the library. (for AC15)

Best regards.

EDIT: on a side note... how's AC handling those large coordinates? have you noticed any calculation issues because of being too far from the project origin?
Anonymous
Not applicable
Thanks for the suggestions and the updates! great 🙂
thanks for your time,
i will go and make some edits and improvements, the obj is working well for us and i think it will be worth ironing some things (as you've suggested)..

I haven;t noticed a problem with the handling of the big numbers.. I'll keep my eye out for it, it will be interesting because we take the x,y coords out of cad, into a GIS program and potentially back to Cad later, so i will take note

thanks, regards
Anonymous
Not applicable
I have the same problem trying to change an object parameter to SYMB_POS_X + GLOB_WORLD_ORIGO_OFFSET_X in Archicad 12. The parameter displays zero.
When I place the exact same object in AC20 the object works fine.
It seems Archicad 12 reads SYMB_POS_X as zero even though in 2D script if you enter TEXT2 0,0, SYMB_POS_X the plan view shows the correct value.
Any workaround?

regards
John Koutitsas
Barry Kelly
Moderator
Is GLOB_WORLD_ORIGO_OFFSET_X a valid command in version 12?
I don't have it installed anymore so can't see the GDL documentation.

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
Barry Kelly
Moderator
Barry wrote:
Is GLOB_WORLD_ORIGO_OFFSET_X a valid command in version 12?
I don't have it installed anymore so can't see the GDL documentation.

Barry.
It is there - I managed to find an old copy.
I can confirm that you can not set the SYMB_POS_X value as a parameter in 12 but you can in 20.
It may be a bug in 12 that will never be fixed now.
Is there a reason why you still need to use 12?

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