@unknownuser said:
Thanks Jim!
Once again, you hit the mark.
First, I missed the ".collect" and get a bug on sketchup.
Have you got any idea what scan order is prefered in the 'do' loop?
Any way to sort the collection?
Collect is a Ruby method that just makes a copy of the selections in an Array.
There isn't any order to the entities returned (that I am aware of.) You'll need to sort them manually, possibly by building another array of only the instances. Then, you'll need to decide what to sort on: definition name, color, position, size?