Hy yrguner,
Just checking to make sure that you are aware that no GDL object can know anything about any other object ... except in the case of labels, which know about the one object that they are associated with. So, if you want info about a type of zone in a GDL solution, you would need to create a Zone Label that calculates what you want - for that one zone. While it could write a single number to a text file, I don't think that's what you want.
You can create a schedule of those zones that has all of the calculated values for all zones ... and then can Publish that to a text file. You cannot actually "print" other than to a log file.
GDL is a language just for creating objects, not for automating anything about ARCHICAD itself. The C/C++ API (see the Developer Forum here) is what lets you program solutions that go beyond that.
One of the forum moderators
AC 28 USA and earlier • macOS Sonoma 14.7.1, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB