Got a minute? We appreciate your feedback:

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

GLOB_ID to any parameter

Anonymous
Not applicable
Hi

How do i link GLOB_ID with another parameter?

I want my parameter to copy from GLOB_ID. So I can edit my "GLOB_ID" in schedules.
8 REPLIES 8

Laszlo Nagy
Community Admin
Community Admin
The GLOB_ID global parameter of GDL returns the value that you set in the ID field in the Tags and Categories panel of an element.
So you have to simply list the "Element ID" in the Schedule and you can modify its value in Schedules. No need for this workaround.
Get Archicad Tips at https://twitter.com/laszlonagy
AMD Ryzen 1700X CPU, 48 GB RAM, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), WIN10 PRO ENG, AC20-AC26
Loving Archicad since 1995

Anonymous
Not applicable
laszlonagy wrote:
The GLOB_ID global parameter of GDL returns the value that you set in the ID field in the Tags and Categories panel of an element.
So you have to simply list the "Element ID" in the Schedule and you can modify its value in Schedules. No need for this workaround.
Thank you 😃 But could I get the Element ID to my Interface?

I just like to write this code:
UI_OUTFIELD "Littera:", xIf[3],yIf,yText,20,1
UI_INFIELD "GLOB_ID", xIf[4],yIf-5,105,20 : yIf = yIf+yIfDiff
But which code should I use there?

Laszlo Nagy
Community Admin
Community Admin
If my memory serves right, the GLOB_ID is a read-only GDL Global Parameter (as are almost all Global parameters).
It will return the value of the Element ID of the element. But you can not set the value of the GLOB_ID in any way.
You can only set the Element ID in the ID field in the Tags and Categories panel.
Get Archicad Tips at https://twitter.com/laszlonagy
AMD Ryzen 1700X CPU, 48 GB RAM, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), WIN10 PRO ENG, AC20-AC26
Loving Archicad since 1995

Anonymous
Not applicable
Okey then I will use the Tags and Categories "ID" all the time then

Hi there,

Does GLOB_ID still works the same in AC26?

you still cant set ID to change by variable?

 

I use GLOB_ID and then split the string and set a few parameters, then I can control the entire object with the id

Yes, it still works the same way.

So, if I understand your request correctly, you would like to be able to specify the value of the Element ID by a formula or expression, and not have to enter it manually.

I can think of two routes nowadays:

1. Element ID Manager - this can change Element IDs based on a few simple criteria and rules. This has been available in Archicad for many years but it is limited in what it can achieve.

2. Python - you can use Python scripts in Archicad to renumber Element IDs. I think Python is available for users with SSA/Forward. and There are some examples on this page: https://graphisoft.com/downloads/python#try

 

 

 

Get Archicad Tips at https://twitter.com/laszlonagy
AMD Ryzen 1700X CPU, 48 GB RAM, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), WIN10 PRO ENG, AC20-AC26
Loving Archicad since 1995

Yeah OK thank you for replay.
I was hoping to make a label that shows GDL variable from associated object.

Start a new conversation!

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!