Hi Alister.
I spent a little bit of time trying to do the same thing.
GDL Reference Guide that comes with ArchiCAD will get you there eventually if you study the command Piort suggested.
This is my code I put into the MASTER script of my door label to call out door leaf dimension ... this worked for me.
leafwidth=0
leaf_w = request ("ASSOCLP_PARVALUE", "ac_leaf_width",
index_l, type_l, flags_l, dim1_l, dim2_l, leafwidth)
leafheight=0
leaf_w = request ("ASSOCLP_PARVALUE", "ac_leaf_height",
index_l, type_l, flags_l, dim1_l, dim2_l, leafheight)
Your code for U value would be something like this:
uvalue=0
abc = request ("ASSOCLP_PARVALUE", "gs_list_heattransfer",
index_l, type_l, flags_l, dim1_l, dim2_l, uvalue)
Test it with a simple code in 2d Script to see if it worked ... Make sure you test it in a project rather then GDL object box. Assign a value different to 0 to U-Value of your door/window. Hopefully the output doesn't return '0' ... and you know that it works.
TEXT2 0,0,uvalue
I haven't tested it myself but it should do the job.
Good luck.
ArchiCAD 10 - 25 | Windows 10
ARCHIcreate | Perth, Western Australia
archicad solutions | content creation | training | software implementation