In SU when we have a closed edges in one sheet and we redraw one of the edges automatically a face creates. How can we do the same in Ruby SU?
After you create the edge you have to call this method on that edge:
model = Sketchup.active_model entities = model.active_entities point1 = Geom::Point3d.new(0,0,0) point2 = Geom::Point3d.new(20,20,20) point3 = Geom::Point3d.new(0,0,20) edge1 = entities.add_edges point1, point2 edge2 = entities.add_edges point2, point3 edge3 = entities.add_edges point3, point1 edge1.find_faces
You are great!! Thank you so much