Hello,
Is it possible to use Ruby to select faces that have a similar area based on a selection of faces? For example, I have selected an object that has 16 faces. With the 16 selected faces, I loop through each selected face to determine the area for each. Then using that area value for each face, I want to select the faces that have the same area with the rest of my model. Essentially, it would be as if I’m selecting similar objects with the rest of model.
My programming in Ruby is at a beginner level and I’ve only been able to print the area value for each selected face:
model = Sketchup.active_model()
sel = model.selection()
ents = model.entities()
sel_ents =
for e in sel do sel_ents.push( e )
area = e.area*0.00064516
area2 = area.round(2)
puts area2
end
Thank you