2024-02-02 05:51 PM - last edited on 2024-09-26 01:14 PM by Doreena Deng
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?
2024-02-02 07:01 PM
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.
2024-02-05 10:00 AM - edited 2024-02-05 10:01 AM
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
2024-02-05 10:30 AM
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.
Barry.
2024-02-05 11:01 AM
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
2024-03-05 01:45 AM
Just make sure the cutting body is in the position of the volume that you want to cut.
Barry.