• Login
sketchucation logo sketchucation
  • Login
ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

Trouble With Ruby

Scheduled Pinned Locked Moved Developers' Forum
8 Posts 5 Posters 963 Views
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.
  • D Offline
    Dave R
    last edited by 26 Feb 2008, 20:56

    Not me. I have a friend and SketchUp newbie with whom I've been e-mailing. He's having trouble getting his first downloaded plugin to work. He wants Bezier.rb. He initially downloaded it from Didier's site but when asked for the file type to save, saved it as MHTML. Of course that didn't work and he contacted me. I had in rename it to .rb with no luck. I had him delete the file from the Plugins menu and download it again making sure to save it with the .rb extension. No joy. I sent it to him as a TXT file and had him save that and rename it. No luck. Even after changing the name he says it is showing now as a TXT file.

    So any ideas? Does he need to throw his computer away and start over? All I know at this point is he's using a PC.

    Thanks in advance.

    Etaoin Shrdlu

    %

    (THERE'S NO PLACE LIKE)

    G28 X0.0 Y0.0 Z0.0

    M30

    %

    1 Reply Last reply Reply Quote 0
    • C Offline
      confitex architure
      last edited by 26 Feb 2008, 21:19

      instead of saving the showing ruby code page he should right click on the link from the source page and choose "save target as".
      The extension should be visible when saving the file. If needed change the extension to rb.
      If the extension is not visible he should change the 'show extensions' in the Windows folders options.

      1 Reply Last reply Reply Quote 0
      • D Offline
        Dave R
        last edited by 26 Feb 2008, 21:34

        Yeah, we went through all that. He still can't get it to go. Oh, and he has all the boxes under extensions checked.

        Etaoin Shrdlu

        %

        (THERE'S NO PLACE LIKE)

        G28 X0.0 Y0.0 Z0.0

        M30

        %

        1 Reply Last reply Reply Quote 0
        • J Offline
          Jim
          last edited by 26 Feb 2008, 21:39

          If you can compress it in a .zip file for him, it may actually be easier. Every web browser knows to save a .zip file to hard disk. And every one knows how to unzip it, right? (I hope.)

          Hi

          1 Reply Last reply Reply Quote 0
          • G Offline
            Gaieus
            last edited by 27 Feb 2008, 13:32

            What I guess he is saving it from the File > save (something) menu. In this case some browsers (like IE for instance) adds a unch of html codes as well since it thinks they're needed. Try to open it in a text editor and see if this is the case.

            He should click on the ruby link, see all the codes there, Ctrl+A (select all) Ctrl+C (copy) and paste it into a simple text editor. then save with the exact file name that he can see in the browser (or at the end of the code)

            BTW why doesn't he download Fredo's bezier kit? That's a zipped file anyway and rocks

            Gai...

            1 Reply Last reply Reply Quote 0
            • D Offline
              Dave R
              last edited by 27 Feb 2008, 18:08

              Thank Gai, I ended up sending it to him as a TXT file. I told him to open it in WordPad and save it with rb as the extension. It worked but now, when he opens SU he gets the following error message.

              "Error Loading File BEZIER.rb
              C:/Program Files/Google/Google SketchUp 6/Plugins/BEZIER.rb:1: Invalid char \377' in expression C:/Program Files/Google/Google SketchUp 6/Plugins/BEZIER.rb:1: Invalid char \376' in expression"

              I'm not quite sure where to look for the problem. He says he downloaded the file again from Didier's site and gets the same message.

              I know he should have Fredo's kit but at this point I think we'll be happy to get this simple script loaded with no errors. Then he can move up.

              Cheers,

              Dave

              Etaoin Shrdlu

              %

              (THERE'S NO PLACE LIKE)

              G28 X0.0 Y0.0 Z0.0

              M30

              %

              1 Reply Last reply Reply Quote 0
              • G Offline
                gata
                last edited by 28 Feb 2008, 00:55

                Try resaving the TXT file in Notepad. Wordpad is not a plain text editor. It has text formating.

                1 Reply Last reply Reply Quote 0
                • D Offline
                  Dave R
                  last edited by 28 Feb 2008, 01:29

                  Thank you. That worked.

                  Cheers,

                  Dave

                  Etaoin Shrdlu

                  %

                  (THERE'S NO PLACE LIKE)

                  G28 X0.0 Y0.0 Z0.0

                  M30

                  %

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

                  Advertisement