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

    Lost sketchup.rb

    Scheduled Pinned Locked Moved Developers' Forum
    6 Posts 3 Posters 551 Views 3 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.
    • M Offline
      MartinRinehart
      last edited by

      My 'require "sketchup"'s all failed today. (They were working yesterday.) I found "sketchup.rb" and added its path to "$:" which found it again, but that pushed the failure to "langhandler" so wasn't really a solution and, of course, wouldn't last from one IRB session to another.

      How was this supposed to be set up? (And please save me from "$:" as a variable name! Ruby is supposed to be one better than that language.)

      Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.

      1 Reply Last reply Reply Quote 0
      • thomthomT Offline
        thomthom
        last edited by

        I'd reinstall SU.

        Thomas Thomassen β€” SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund

        1 Reply Last reply Reply Quote 0
        • M Offline
          MartinRinehart
          last edited by

          Thanks, ThomThom.

          Is it the case that no one knows? Is there a record for consecutive unanswered questions? I'm up to 5.

          I'm going to reinstall and then see if I can trace it down. More FILE and $:. Why, oh why, didn't @Last choose Python?

          Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.

          1 Reply Last reply Reply Quote 0
          • thomthomT Offline
            thomthom
            last edited by

            I've never heard of such problem. I'd think that's why there's been a lack of response. (plus, it's summer πŸ˜‰ )

            Thomas Thomassen β€” SketchUp Monkey & Coding addict
            List of my plugins and link to the CookieWare fund

            1 Reply Last reply Reply Quote 0
            • J Offline
              Jim
              last edited by

              Hi Martin,

              You don't need to re-install - I'm sure this is just a configuration issue.

              First, IRB and sketchup.rb do not mix. If you are using IRB, that means you are using the ruby.exe installed by the Ruby Language and not the ruby.dll installed by Sketchup. This is a separate Ruby environment from the one used by Sketchup, and know nothing about SketchUp's classes and objects.

              The Ruby Console is the command-line interface to SketchUp's Ruby environment - the one that knows about all the SketchUp classes and objects.

              The global variable $LOAD_PATH is the friendly name for $:

              How about a screenshot of the errors?

              Hi

              1 Reply Last reply Reply Quote 0
              • M Offline
                MartinRinehart
                last edited by

                @jim said:

                Hi Martin,

                You don't need to re-install - I'm sure this is just a configuration issue.

                First, IRB and sketchup.rb do not mix.

                Stupid me! That was the whole problem.

                Thanks!

                Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.

                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