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

GDL
About building parametric objects with GDL.

I'm trying to get building materials from basic wall.

LeeJaeYoung
Virtuoso

I'm making a window GDL and I'm trying to get building materials from basic wall.
What should I do?

AC27 on window 11
4 REPLIES 4
MetalFingerz
Advocate

@LeeJaeYoung , if you're gonna start doing windows in GDL, you should really read the Reference Guide, there's a whole section about this : https://gdl.graphisoft.com/reference-guide/doors-and-windows

 

More importantly, regarding your question :


If you want to match the surface materials of door/window elements to those of the wall, the bottom surface of the elements should match the outside, and the top surface the inside of the wall. You can achieve this from your scripts using the WALL_MAT_A, WALL_MAT_B and WALL_MAT_EDGE global variables
representing the surface materials of the wall into which the door/window is placed. In the 2D script, the WALL_SECT_PEN, WALL_FILL_PEN and WALL_FILL global variables can be useful, as these give you the pen numbers of the wall contour and fill plus the index number of the fill of the wall on the floor plan into which the door/window is placed. With composite walls, you have to use the corresponding global variables.

WALL_MAT_A should give you the the first layer of a composite wall and the material of a basic one I believe.

LeeJaeYoung
Virtuoso

Thank you for your advice.
Is there any way to obtain Building Materials?
I like to judge by Building Material.
I can judge it based on the material, but..... ^^

AC27 on window 11

Hi,

yes, WALL_SKINS_PARAMS contains the building material index for all types of walls.

 

Péter Baksa
Software Engineer, Library as a Platform
Graphisoft SE, Budapest

I'm asking how to get building material from Basic wall.
Thank you for your interest. ^^

 

WALL_SKINS_PARAMS parameters of the composite or complex wall skins

 

WALL_SKINS_BMAT_NAMES building material names of the composite or complex wall skins

AC27 on window 11