I have made a script that adds a dictionary and sets some attributes to a model; basicly tagging them for use in an extension I’m making. Now, my issue is that I have a lot of models, and I’d rather not open each model in sketchup, just to set this piece of metadata on the file. Is it possible to have ruby use the sketchup::model.set_attribute function inside a ruby script?
My hope is to just run a script that finds all models in my model-folder, and tags them using the set_attribute-function and some logic, which will be a lot faster than opening all of the models one by one and running a function to set the attribute. Does anyone know of a way to do this?