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

GDL
About building parametric objects with GDL.

Object with nested opening for slabs

jc4d
Expert

Hello,

I have to create a chimney in gdl, the tricky part is that in the section drawings the hole has to be shown in the slabs. Therefore, I was thinking on using the opening tool to cut the slabs, but I would like to avoid placing 2 separate objects (chimney and opening).

 

Is there a way to achieve it with a gdl object?

 

Juan

6 REPLIES 6
Barry Kelly
Moderator

I don't think you can call an opening into an object.

 

But it is possible to script a PRISM_ where you want the hole to be cut in the floor.

Obviously the chimney is hollow inside so a Solid Element Operation with subtraction from the slab will only remove the solid walls of the chimney.

 

You then contain the PRISM_ for the hole in a command that only activates when you perform an SEO.

Something like this that I use all the time for my vanity basins ....

 

!GLOB_CONTEXT = 44
!! use prism to cut bowls when used in Solid Element Operation
if GLOB_CONTEXT > 40 and GLOB_CONTEXT < 50 then
	ADDz 0
	
	for i=1 to 32
	PUT cos(i*11.25)*0.220,sin(i*11.25)*0.220,15-2
	next i
	
	PRISM_ 32, 0.200,
			GET(NSP)
	DEL 1
endif

 

This will cut an oval shaped hole but you can substitute a rectangular PRISM_.

Just uncomment the first line to see the prism in the object preview as you script.

 

Make the prism the same size and height as the void in the chimney and you won't have to worry about figuring out floor heights.

 

Basically what you will be doing is creating a solid centre to the chimney that will only activate when an SEO is performed.

Just a simple 'Subtraction' with the slabs as the targets and the chimney object as the operator.

 

Barry.

 

One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
jc4d
Expert

Thank you, so I have to rely on SEO operations then?

That is the only way I can think to semi-automate it.

 

Otherwise it is use a separate un-associated opening as you had thought of before.

 

Barry.

One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
jc4d
Expert

Ouch, this workarounds could be avoided is skylights could be used on slabs as well.

I will have to ask the archictects what workflow they would prefer.

 

The idea behind this question is that when designing a building with more than 10k m2 and having n amount to chimneys, keeping track of SEO operations it would become a real nightmare. But yeah, your tip worked as expected 🙂

 

I did try by selecting a simple generated block and use the opening tool with the magic wand, to get size from the block and place a opening with those dimensions, but didn't work. 🤔

 

You wrote this (sorry quoting selected text desn't work):
"I don't think you can call an opening into an object"

 

So, what about calling an object into an opening?

 

Juan.

DGSketcher
Legend

@jc4d Depending on the detail of your chimney, have you considered using a Complex Profile with a Column to create the chimney rather than GDL? If the column uses stronger materials it should automatically intersect and form the required opening in the slab.

 

 

Apple iMac Intel i9 / macOS Sonoma / AC27UKI (most recent builds.. if they work)

Great tip, thank you.

The details are kind of high. If I could call a wall, column or a beam (thank you for the link to the chart), would be great since the hole is a basic rectangular shape but not the object itself.