yesterday - last edited 10 hours ago by runxel
I want a GDL object that auto-increments its counter parameter each time a new instance is placed. What is the correct approach in current ArchiCAD GDL? LIBRARYGLOBAL is read-only (MVOptions), and OPEN requires an extension filter name I don't know.
10 hours ago
That's not really possible, I think. Best chance might be to use the element ID (GLOB_ID) for that plus the "increment ID after each placement" option in the work environment.
8 hours ago
The only way I can think this would possibly work automatically is to read and write to an external text file.
But this text file would have to be in the embedded folder of the library manager (I have never tried that)
Having the text file in your user profile on the local hard drive (the usual default location for data files) is fine, but that will only work if you are using the file on that one machine.
The element ID as runxel suggest is a good idea but you will have to manually watch this control the IDs via the element ID manager or through a schedule.
But if you are looking to increment items within one object, like parking bay numbers, then this can be done (and has been already).
Individual object do not talk to each other, so they have no way to know what incremental ID they should be.
Barry.