No it has been done for a long time on Click-Kitchen 2, with automatic positioning of the handles :
I am in the final straight or I want to propose a solution of cleanings of furniture proposed by Click-Kitchen 2.
To purge the components of the first level of nesting, I found hundreds of methods!
Here is a simple method that works:
mod = Sketchup.active_model
sel = mod.selection
sel.each{|s| s.definition.entities.grep(Sketchup::ComponentInstance).each{|e| e.erase! if e.hidden? }}
Cleaning the subcomponents of the child component is much more complicated!
It is on this subject that I need your help.
I do not lose hope!
David
Ps: If I find the only solution, I will come to post it to help all those who will find a day in my situation.