Hi!
I`m new with Ruby for Sketch Up and I think I need some help.
I want to create walls with windows by a loop from a .txt-file on my computer.
The reading part works really fine - all the wall and window solids are getting created so far. But I have problems to substract the two solids from each other.
I had the idea to make groups with an unique name (f.e. Wall1 / Window1) so I can select them by name but I don`t know I should do it.
Thats the code for building and naming the wall:
#First Wall
pt1 = .....
pt2 = .....
pt3 = .....
pt4 = .....
group = entities.add_group
group.name = "Wall1"
new_face = group.entities.add_face pt1, pt2, pt3, pt4
if normal = -1.0
new_face.pushpull 3.0
else
new_face.pushpull -3.0
end
#First Window
group = entities.add_group
group.name = "Window1"
new_face = group.entities.add_face pt1, pt2, pt3, pt4
.....
.....
How is it possible to select these two solids and create and boolean operation?
I hope you can help me! Im working on these problems for days!
Thanks!
Chris