Hi,
I’m writing a script to cut a hole in a wall in which I want to split a beam at a point. I have found the point on the beam but creating a surface and finding the intersection with all the objects in object pipeline for a filter I’ve created, but I can’t understand how too split the beam at the intersection point ?
Window Cutout Question.gh (14.0 KB)
Any help apprecieated
Cheers Greg.
Hey Greg,
Not sure if this is what you mean but hopefully I understood you correctly.
I didn’t inherit the Beam attributes just to show difference in colour. blue is the new beam.
Hope this help!
Oskar
Can you post some screen grabs of your model and explain your problem a little more? I get the general gist, but I am not sure. I think your script could be a lot cleaner. I would try to create the correct curve geometry instead of splitting the beam after.
Brad, Oskar,
My goal is to cut a hole in a wall for a door or window frame. The wall has 3 layers, Cladding. Girts and stud frame.
Inside view
My code picks 2 points at ground level and has sill and head height. For the cladding I created aplate and used it as a part cut and selected the all the Cladding with a Part Filter, and because the plate is only 500 thick it only cuts the parts near it.
But cutting the Girts the same way Doesnt work as the Girt stays 1 part and wont create NC’s correctly.
I can find the intersection point of the cut and the girt in a similar way but I cant isolate the beam that runs through that point.
I can make up a simple Model if that makes it easier for you guys. I’m using TS2021 and Rhino 7
Our trades ship cladding and studs like that full length and they are cut on site. If that is the case, your method will work. In that case the main reason to cut these is for illustration only. If not, and you need all pieces to be separate parts, this method may not be ideal. When you cut piece like below you end up with a single part, when in reality you would like it to be two parts for your bill of materials.
Your window shape seems to be perpendicular to the wall girts? You will need to extrude the shape to create a volume to cut with. I might have missed that in your discussion. I would likely create the opening shapes very early in the model process in the planes where the opening is.
Another option would be to create a simple custom component (detail) that creates a dummy shape at the center point of your opening. Most architects we work with define the center point, and I prefer tekla handles the math. Our architects are clueless about rough opening sizes, so you could build that into your CC as well. I have also added the framing to our CC’s in some cases for illustration as you see below.
I would approach the wall girts differently. I would shatter the curve geometry using your shapes. Once shattered, you can cull the part out of your tree that is not needed. Doing it this way will result in multiple parts as I think you need.
Are you in Austrailia? I am in Canada and we would likely use a hat track to the wall girts in this case if drywall is requried.