Not well versed in Ruby, so i need help to write a simple ruby command to clear the Instance naming on groups and component.
SketchUp uses instance naming when using solid tools and it’s messing up some exports. Right now I’m manually going through the Outliner and deleting them.
You have a syntax error in your code because you are using the wrong character for quotation mark: "
You are trying to get component definition named to “Name of component” from the DefinitionList object and rename its instances, and there is no component (definition) named like that in your current example. The marked objects are Groups.
However the Group have its definition, the name of this definition are not visible. (Internally it is Group#1, Group#2 …etc.).
I guess, what you want is to reset the names of the groups to initial “Group”.
One possibility to reset the name of all groups to “Group” in a root of the model (like on the picture)
_
This will do the same if you are in a model editing context, but it can be used if you are editing a group or component ant that contains a groups you want to reset the names