Hellobaldaman,
Here is an example code that will allow you to select all the edges:
def select_all_edges(ents, edges)
ents.grep(Sketchup;;ComponentInstance).each do |e|
e.definition.entities.grep(Sketchup;;Edge).each do |e|
edges << e
end
select_all_edges(e.definition.entities, edges)
end
end
edges = []
mod = Sketchup.active_model
sel = mod.selection
select_all_edges(sel, edges)
sel.clear
sel.add(edges)
Note that you do not have to select the edges to apply a ruby transformation on the edges.
Cordially
David