BIM Coordinator Program (INT) April 22, 2024

Find the next step in your career as a Graphisoft Certified BIM Coordinator!

GDL
About building parametric objects with GDL.

Sequential numbering

Achille Pavlidis
Enthusiast
I want to create a simple shape that displays an increasing number.

I tried the following, but it does not work

https://helpcenter.graphisoft.com/knowledgebase/49523/

Any suggestions?
Mac OSX 13.6.6 | AC 27 INT 5003 FULL
3 REPLIES 3
Peter Baksa
Graphisoft
Graphisoft
Sorry, that example is not relevant to the title, something has mixed up.
If the element ID (of anything, not just GDL objects) contain a number before placement, it will be auto-incremented after placement in the info box.

You just need to show that ID from GDL:
text2 0,0, GLOB_ID
Péter Baksa
Software Engineer, Library as a Platform
Graphisoft SE, Budapest
Achille Pavlidis
Enthusiast
Hi Peter,

Sorry, I don't know why the example is not relevant to the title... maybe I'm missing something? The link is about an object that displays a number that increases with each placement. That is exactly what I want to do, but following the instructions I didn't get that result...
Anyway, thanks to your suggestion I was able to display the number, but after 9, it goes to 0 and then starts over again... Why is this happening?

Thanks
Mac OSX 13.6.6 | AC 27 INT 5003 FULL
Barry Kelly
Moderator
Achille wrote:
Sorry, I don't know why the example is not relevant to the title... maybe I'm missing something? The link is about an object that displays a number that increases with each placement. That is exactly what I want to do, but following the instructions I didn't get that result...
That article is titled as increasing a displayed text number, but it is actually about increasing a Hotspot ID number.
Nothing to do with text.
Peter explained the procedure as you have used.

Achille wrote:
Anyway, thanks to your suggestion I was able to display the number, but after 9, it goes to 0 and then starts over again... Why is this happening?
Make the first ID number 01 or 001 instead of just 1.
The more zeros (numerals) you have, the further you will get before it resets.

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
Learn and get certified!