Hi Thom,
Thank you for your quick respons. It works!
With exploding the groups I got rid of the two levels.
With kind regards,
Frank
Enjoy spring!
Hi Thom,
Thank you for your quick respons. It works!
With exploding the groups I got rid of the two levels.
With kind regards,
Frank
Enjoy spring!
Hi Thom,
Thank you for your quick respons.
I indeed did not want to create a two level nested group.
Is it easy for you to tell me how I got rid of one of the two levels?
With kind regards, Frank
Hi all,
Embarrassing simple questions (I think):
With kind regards,
Frank Brugman
bbxmax = Geom;;Point3d.new
bbxmin = Geom;;Point3d.new
bbxmin.x = 1000.mm
bbxmin.y = 0.mm
bbxmin.z = 0.mm
bbxmax.x = 2000.mm
bbxmax.y = 1000.mm
bbxmax.z = 1000.mm
boxpts = []
boxpts[0] = [bbxmin.x, bbxmin.y, bbxmin.z]
boxpts[1] = [bbxmax.x, bbxmin.y, bbxmin.z]
boxpts[2] = [bbxmax.x, bbxmax.y, bbxmin.z]
boxpts[3] = [bbxmin.x, bbxmax.y, bbxmin.z]
face1 = Sketchup.active_model.entities.add_face boxpts
face1.reverse!
face1.pushpull(bbxmax.z-bbxmin.z )
bbx1 = Sketchup.active_model.entities.add_group
bbx1.entities.add_group face1.all_connected
bbxmin.x = 2000.mm
bbxmin.y = 0.mm
bbxmin.z = 0.mm
bbxmax.x = 3000.mm
bbxmax.y = 1000.mm
bbxmax.z = 1000.mm
boxpts = []
boxpts[0] = [bbxmin.x, bbxmin.y, bbxmin.z]
boxpts[1] = [bbxmax.x, bbxmin.y, bbxmin.z]
boxpts[2] = [bbxmax.x, bbxmax.y, bbxmin.z]
boxpts[3] = [bbxmin.x, bbxmax.y, bbxmin.z]
face2 = Sketchup.active_model.entities.add_face boxpts
face2.reverse!
face2.pushpull(bbxmax.z-bbxmin.z )
bbx2 = Sketchup.active_model.entities.add_group
bbx2.entities.add_group face2.all_connected
if ( bbx1.deleted? )
UI.messagebox("bbx1 deleted!")
end
if ( not bbx2.manifold? )
UI.messagebox("bbx2 is not a manifold")
end