Unfortunately Project Info values are autotext fields and while they can be used in 2D scripts their values can not be read in GDL.
There seems to be a work around by exporting the Project Info to a XML file and then reading that into the GDL script.
http://archicad-talk.graphisoft.com/viewtopic.php?t=30655&postdays=0&postorder=asc&highlight=project...
But I would say it would be easier to just create an object that you manually place on the plan when you need it.
I guess it could be done through Library Globals in the Model View Options but to me that (once set up) will be the same amount of work as placing an object manually.
It still won't be linked with the Project Info.
You would have to go into the MVO and tick a box that says project status is 'Permit' - then your GDL object could react to that (via Library Globals).
You might just as well select an object and place it or have the object with a parameter for project status as it seems you have done already.
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