Pens are different in this regard because you cannot define new pens as such. What I mean is that there are Pen Sets and each pent set has 255 colors, no more, no less.
With other attribute types, like materials, you can define as many as you wish.
So they work differently in GDL as well.
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac27