How to batch modify description of sketchup file?
-
I want to edit/change the Description in several SketchUp files... (the description I am talking about is in Model Info->File->Description). But, as I have several files where I need to write the same thing, I want to know if is any method to do it in batch, without opening each file.
Thank you.
-
As far as I know you'll need to open each SKP file and use
Sketchup.active_model.description="xxxxx"
save it and then close/open the next.
There already some examples of batch SKP file processing.
For example my DAE-exporter, where you open one SKP in a folder of SKPs, run the tool and it processes all of the SKPs in turn automatically...
http://forums.sketchucation.com/viewtopic.php?p=347277#p347277
All you need to do is replace the 'export' part with the description-adding code and aSketchup.send_action("saveDocument:")
to save it [NOT model.save() !]... -
thank you very much, TIG ! I will look over your plugin!
Advertisement