BIM Coordinator Program (INT) April 22, 2024
Find the next step in your career as a Graphisoft Certified BIM Coordinator!
Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Requesting Door Leaf Dimension in Marker Object

jakubc7
Advocate
I am trying to 'output' door leaf dimension to use in a 'Dimension Marker'.

I have no problems with getting the width and height :
l1a = STR("%.0mm",AC_WIDO_B_SIZE)
l1b = STR("%.0mm",AC_WIDO_A_SIZE)

However I cannot figure out how to output the 'ac_leaf_width' as it is not part of the Marker Parameters but the Door Object Parameters.

I tried using this request which I noticed on another marker (AUS D&W Marker) and GDL Reference seems to suggest the command to request object's parameters for listing:
leaf_w = request ("ASSOCLP_PARVALUE", "ac_leaf_width",
index_lw, type_lw, flags_lw, dim1_lw, dim2_lw, leafwidth)

But it does not let me 'output' 'leafwidth' parameter.

I'm not sure what I'm doing wrong.
Can anyone enlighten me please?

Thanks.

Jakub
ArchiCAD 10 - 25 | Windows 10
ARCHIcreate | Perth, Western Australia
archicad solutions | content creation | training | software implementation
4 REPLIES 4
Anonymous
Not applicable
Hello,

I can't test it, but think declaring the variable first might help;

leafwidth= ""
leaf_w = request ("ASSOCLP_PARVALUE", "ac_leaf_width", index_lw, type_lw, flags_lw, dim1_lw, dim2_lw, leafwidth)
Alternatively you could create a string type parameter 'leafwidth'


Hope this helps.
jakubc7
Advocate
Thanks for the reply Juha.

Declaring the parameter first seems to get rid of the "uninitialised" error, however it still doesn't assign the ac_leaf_width value to that parameter.

Thinking about it, how does ArchiCAD/GDL know which object to get the parameter from. I suppose ac_leaf_width could be used in more than one object. Do I have to specify which object to get the parameter from?

I'm attaching my object as well as the gs_DW_Marker.gsm where they seem to do it successfully ... but it is a much more complex process that I cannot follow
ArchiCAD 10 - 25 | Windows 10
ARCHIcreate | Perth, Western Australia
archicad solutions | content creation | training | software implementation
jakubc7
Advocate
markers
ArchiCAD 10 - 25 | Windows 10
ARCHIcreate | Perth, Western Australia
archicad solutions | content creation | training | software implementation
jakubc7
Advocate
Ohh wow ... I feel a little silly.
The whole time I've been testing the "Marker" on a window 😕

The request seems to work fine on a door object.

leafwidth=0
leaf_w = request ("ASSOCLP_PARVALUE", "ac_leaf_width",
index_lw, type_lw, flags_lw, dim1_lw, dim2_lw, leafwidth)

I used the 1st line so that I do not get an error when working with a window.

Thanks for trying to help
ArchiCAD 10 - 25 | Windows 10
ARCHIcreate | Perth, Western Australia
archicad solutions | content creation | training | software implementation
Learn and get certified!