Simple Script- any help would be appreciated
-
I have always wanted to learn Ruby. I started looking at the Ruby Library Depot. I want to make a simple script and was wondering if there were an generous people out there. All the script would do would open a sketchup file and save it as version 6. I have 150 sketchup files I need to save as version 6 and thought this would be a good first script to write, but I have no idea where to start. The script would open all 150 files and save them as version 6 and close them.
-
Hi Zzm,
Welcome to the Forum.
You can download a very simple script and delete its content, except the methods responsible for adding new plugin in the Plugins menu. The methods should be modified to suit your script name.
Then you have to learn how to create a simple loop using while or different method.
Just make your script write all SKP file names to a Ruby Console. If this will work well, then you could try to modify the method to work with the files you want to convert.I would suggest visiting
http://code.google.com/apis/sketchup/docs/index.html
and checking what methods/commands will you nedd for your script.Take small steps. Do not try converting the files from the beginning and come back here with any questions you will have. We have plenty of people willing to help here.
Tomasz
-
Thanks for the quick response and tips. small steps for now... I try what you said
Advertisement