I thought that is what you wanted. Here is def that allows you to make all instances unique, or make instances unique to parent.
def make_unique(inst, unique_to_parent = true)
if unique_to_parent
Sketchup.active_model.start_operation "Make Unique to Parent"
else
Sketchup.active_model.start_operation "Make Unique"
end
instances = inst.definition.instances
parents = Hash.new
instances.each{|i|
if parents.include? i.parent and unique_to_parent
i.definition = parents[i.parent]
else
i.make_unique
parents[i.parent] = i.definition
end
}
Sketchup.active_model.commit_operation
end
