We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Window/Door Marker requests

Anonymous
Not applicable
Hi Guys,

I wonder if some one can help me.
I would like to request Parameter information from a custom window or door and use it in the marker.

Im really battling with the "request" functions.
I'm also not sure if I even need to use the "request" function, is there another way?

Eg: Lets say I have a parameter in the window/door called "Uvalue" and is't value is "3", how do I get that info to my marker so that I can use or display it?

Thanks in advance for all your help.
Regards.
5 REPLIES 5
Study the Request asscopar_value in any DW marker like the fire rating called from D&W.

Best Regards,
Piotr
jakubc7
Advocate
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
Anonymous
Not applicable
Great, thanks so much for your efforts guys, much appreciated!
I will give this a bash.

Regards,
Anonymous
Not applicable
Hi Guys,

I have finally figured this out but have now run into a new issue.
I am able to request the info I need, but if the parameter does not exist in a window or door, then the UI disappears. Is there a parameter dependance command similar to the file dependance command?

Kind regards,
jakubc7
Advocate
I may be completely wrong ... but maybe if you try forcing the parameter...

ie.
IF U-Value = 0 THEN
U-value = 1
ENDIF

... my guess is that it probably won't work but may be worth a try.
ArchiCAD 10 - 25 | Windows 10
ARCHIcreate | Perth, Western Australia
archicad solutions | content creation | training | software implementation