Hi,
I have a question about a Ruby command. In one of my SketchUp models I have a dynamic roller conveyor. If I change the length, the number of rolls is recalculated. Now there are hundreds of rolls with instance names. If I export them to DWG there is the instance name over each roll.
Now I´m searching for a ruby command to delete all instance names from every component in the model.
I found this:
“Sketchup.active_model.definitions[“Name of component”].instances.name.each{|e|e.erase!}”
But it doesn’t work…
I´m new to ruby and want to know if anyone can help me
If I type just “instances.each” it delete the complete component. Is the a way to say in Ruby something linke: “check each component in model, if there is an instance name → delete it”
Hope you understand my nearly perfect English.
I uploaded a example file.
Thanks for help
test.skp (266.6 KB)