cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
2024 Technology Preview Program

2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations

GDL
About building parametric objects with GDL.

Building material fill height

Mar_vojt_
Participant

Hello Community,

 

I am currently scripting material label for composites (walls and slabs). Label has also fill of building materials by accesing WALL_SKINS_PARAMS. So i have information about thickness and fills of composite materials.

Then i want to draw the fills with corresponding thickness (that is something that default composite label cannot do).

So i draw a polygon with command POLY2. That command includes option for cut fill. But this fill will not expand correctly in the area. The fill has default thickness as set in fill settings.

Mar_vojt__0-1700841131686.pngMar_vojt__1-1700841166777.png

So i tried to use a command POLY2_B{3} with mxx, mxy, myx, myy vectors for resizing fill according to the thickness of the material. But I cannot find correct height for the fill. I think, that I need information about the height of the fill, but i did not find any request command for it.

 

Do you know about solution for custom thickness of fills in GDL 2D element? Or can I obtain information about fill settings (their height)?

 

Thank you for your help.

Martin

4 REPLIES 4
LChen
Graphisoft
Graphisoft

Hi,

I'm afraid you can hardly get those fill's spacing factor values using GDL script now unless you can use API.

Mar_vojt_
Participant

Thank you very much for the answer, i thought I was missing something obvious.

Martin

Jochen Suehlo
Advisor

Maybe you can let Archicad create the script for the Fill definition, by using the GDL Developers menu.
Then you may get the DEFINE FILL for the required fill.

With this DEFINE FILL you might be able to make the fill parametrically or dynamically fit to your wishes.
I am not shure if this works (in earlier versions of Archicad you could create a master.gdl file with all the Attributes within one project file using the Special Menu), and I am not shure if this is what you want to reach.

Jochen Suehlo . AC12-27 . MAC OSX 14.4 . WIN11
GDL object creation: b-prisma.de

I have checked it: Developer Menu >> Save GDL supplies the attribute definitions like:

define filla	`Dämmung, weich` filltypes_mask  13,  17,  17, 170, 170,  68,  68, 170, 170,
	    0.0015,     0.0015,         60,      2,
	         1,          0,          0,          0,          0,      0, 
	         1,          0,         60,          0,          0,      0
Jochen Suehlo . AC12-27 . MAC OSX 14.4 . WIN11
GDL object creation: b-prisma.de