Hello to you all,
the portion of code should now be formatted in correct way…
Greetings
Joseph.
##
edges = []
group_prot.entities.each do |e|
if e.is_a? Sketchup::Edge
edges << e
end
end
edges.each do |e|
if (e.length == 16.314445.cm) then
e.smooth = true
e.soft = true
elsif (e.length == 14.088546.cm) then
e.smooth = true
e.soft = true
elsif (e.length == 13.036009.cm) then
e.smooth = true
e.soft = true
elsif (e.length == 13.463477.cm) then
e.smooth = true
e.soft = true
elsif (e.length == 14.754000.cm) then
e.smooth = true
e.soft = true
elsif (e.length == 17.710000.cm) then
e.smooth = true
e.soft = true
elsif (e.length == 21.348000.cm) then
e.smooth = true
e.soft = true
elsif (e.length == 25.551000.cm) then
e.smooth = true
e.soft = true
end
end
##
#####################
##
face_04up = group_prot.entities.add_face(pt_06,pt_06t,pt_07t,pt_07)
linea_hide_face_04up = group_prot.entities.add_line(pt_06,pt_06t)
linea_hide_face_04up.smooth = true
linea_hide_face_04up.soft = true
face_05up = group_prot.entities.add_face(pt_07,pt_07t,pt_08t,pt_08)
linea_hide_face_05up = group_prot.entities.add_line(pt_07,pt_07t)
linea_hide_face_05up.smooth = true
linea_hide_face_05up.soft = true
face_06up = group_prot.entities.add_face(pt_08,pt_08t,pt_09t,pt_09)
face_07up = group_prot.entities.add_face(pt_09,pt_09t,pt_10t,pt_10)
face_08up = group_prot.entities.add_face(pt_10,pt_10t,pt_10t_,pt_10_)
face_09up = group_prot.entities.add_face(pt_03t_,pt_03_,pt_04_,pt_04t_)
face_10up = group_prot.entities.add_face(pt_04t_,pt_04_,pt_05_,pt_05t_)
face_11up = group_prot.entities.add_face(pt_05t_,pt_05_,pt_06_,pt_06t_)
face_12up = group_prot.entities.add_face(pt_06t_,pt_06_,pt_07_,pt_07t_)
linea_hide_face_12up = group_prot.entities.add_line(pt_06t_,pt_06_)
linea_hide_face_12up.smooth = true
linea_hide_face_12up.soft = true
face_13up = group_prot.entities.add_face(pt_07t_,pt_07_,pt_08_,pt_08t_)
linea_hide_face_13up = group_prot.entities.add_line(pt_07t_,pt_07_)
linea_hide_face_13up.smooth = true
linea_hide_face_13up.soft = true
##
###########################################