sketchucation logo sketchucation
    • Login
    πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Simple Script- any help would be appreciated

    Scheduled Pinned Locked Moved Developers' Forum
    3 Posts 2 Posters 280 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Z Offline
      zzm
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • T Offline
        tomasz
        last edited by

        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

        Author of [Thea Render for SketchUp](http://www.thearender.com/sketchup)

        1 Reply Last reply Reply Quote 0
        • Z Offline
          zzm
          last edited by

          Thanks for the quick response and tips. small steps for now... I try what you said

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Buy SketchPlus
          Buy SUbD
          Buy WrapR
          Buy eBook
          Buy Modelur
          Buy Vertex Tools
          Buy SketchCuisine
          Buy FormFonts

          Advertisement