GDL
About building parametric objects with GDL.

Objects cut walls

Domagoj Lukinic
Booster

Hi all,

I am making sockets and switches in GDL and was wondering if an object can cut through a wall.

since I am making a socket/switch I don't want to use window/door as subtype...

 

Is there a way that I can tell a part to cut thou the wall? 

5 REPLIES 5
Jochen Suehlo
Moderator

As far as I know you can either use the door or window subtype or (if you use the object subtype) cut manually into the wall using SEOs.
You can create a Solid Operator in GDL to do the cut which is only "visible" for the Solid Operation by using the

GLOB_SEO_TOOL_MODE.
But SEO cuts are always to be done manually.

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

Do you happen to know where I can find example object or something? I found an example here: https://gdl.graphisoft.com/gdl-basics/scale-sensitivity

but I don't quite understand the logic behind it... my goal is to see a wall that has a hole with t thickness in 3D

Here is a bit of code I use to cut a hole for a square shaped basin.

 

!GLOB_CONTEXT = 44
!! use prism to cut bowls when used in Solid Element Operation
if GLOB_CONTEXT > 40 and GLOB_CONTEXT < 50 then
	PRISM_ 5, b_hgt+top_thk,
		 half_b_wid-side_inset,  -half_b_dep+fr_inset, 15,
		-half_b_wid+side_inset,  -half_b_dep+fr_inset, 15,
		-half_b_wid+side_inset, half_b_dep-rear_inset, 15,
		 half_b_wid-side_inset, half_b_dep-rear_inset, 15,
		 half_b_wid-side_inset,  -half_b_dep+fr_inset, -1
endif

 

You can use any PRISM, BLOCK, CYLINDER, or whatever 3D shape you want.

Just make sure it is the correct size and in the correct position.

Uncomment the line ... !GLOB_CONTEXT = 44 ... and you will see the shape to be cut in relation to your object in the 3D preview.

BarryKelly_0-1707125429661.png

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

Thank you for your replay, but i need object to cut a physical wall outside of my GDL part.

I am making distribution cabinet that has 3 options: built-in, on wall, and self standing.

when you select a built-in version and MVO=RCP the placed object needs to make a hole in the wall (or on what ever surface it touches) from model geometry 

 

DomagojLukinic_0-1707126961772.pngDomagojLukinic_1-1707127178516.png

 

 

Just make sure the cutting body is in the position of the volume that you want to cut.

 

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