sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Ruby dev environment

    Scheduled Pinned Locked Moved Developers' Forum
    10 Posts 6 Posters 3.8k Views 6 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.
    • A Offline
      a4chitect
      last edited by

      my current workflow is:
      1.writing scripts in notepad++ (pretty good syntax highlighting, but haven't found any autocomplete functionality)
      2.each change of a script has to be saved
      3.after each change I have to load the script in sketchup with the script_loader.rb
      4.run the script with open ruby console to debug

      I have come across sketchup bridge by tbd, but I would like to here from you about your workflow and possible enhancements to mine.

      1 Reply Last reply Reply Quote 0
      • Didier BurD Offline
        Didier Bur
        last edited by

        Hi,
        I use RDE (good and custom highlighting) along with the Ruby toolbar by J.Foltz.
        Clicking on an icon to load a rb is much faster than using the Plugins/Load script menu.
        I also made myself an icon to test each new function.

        DB

        1 Reply Last reply Reply Quote 0
        • A Offline
          a4chitect
          last edited by

          nice tip didier, thanks. btw is it possible to have the ruby console accept entire paragraphs of script instead of only a line?

          1 Reply Last reply Reply Quote 0
          • tbdT Offline
            tbd
            last edited by

            I use RDE/Bridge combo with ALT+F1 to send what I wrote in RDE to SU.

            SketchUp Ruby Consultant | Podium 1.x developer
            http://plugins.ro

            1 Reply Last reply Reply Quote 0
            • Didier BurD Offline
              Didier Bur
              last edited by

              @unknownuser said:

              btw is it possible to have the ruby console accept entire paragraphs of script instead of only a line?

              Unfortunately no.

              DB

              1 Reply Last reply Reply Quote 0
              • G Offline
                GreyHead
                last edited by

                I guess the Aptana Eclipse PlugIn for RadRails would also work well. It includes what appears to be a good ruby editor and debugger (you can ignore the RadRails bits after installation). The community version is still free and more than adequate as a code editor.

                I use the Zend Studio Neon which is a PHP equivalent and, despite some shortcomings, prefer it to the full Zend studio.

                Bob

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

                  @a4chitect said:

                  nice tip didier, thanks. btw is it possible to have the ruby console accept entire paragraphs of script instead of only a line?

                  Maybe WebConsole. I use it sometimes for testing longer snippets.

                  Link Preview Image
                  Plugin: WebConsole

                  2010-05-22 * Eliminated the Results textarea in favor of SketchUp's Ruby Console. * Automatic resize of the code textarea. * Changed ...

                  favicon

                  (sketchuptips.blogspot.com)

                  Hi

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

                    @didier bur said:

                    Hi,
                    I use RDE (good and custom highlighting) along with the Ruby toolbar by J.Foltz.
                    Clicking on an icon to load a rb is much faster than using the Plugins/Load script menu.
                    I also made myself an icon to test each new function.

                    Didier, Thanks for the recommendation. The latest version can always be had here

                    Hi

                    1 Reply Last reply Reply Quote 0
                    • A Offline
                      a4chitect
                      last edited by

                      yeah thanks! how comes I forgot I had this downloaded 😄 thanks jim

                      @jim said:

                      @a4chitect said:

                      nice tip didier, thanks. btw is it possible to have the ruby console accept entire paragraphs of script instead of only a line?

                      Maybe WebConsole. I use it sometimes for testing longer snippets.

                      Link Preview Image
                      Plugin: WebConsole

                      2010-05-22 * Eliminated the Results textarea in favor of SketchUp's Ruby Console. * Automatic resize of the code textarea. * Changed ...

                      favicon

                      (sketchuptips.blogspot.com)

                      1 Reply Last reply Reply Quote 0
                      • R Offline
                        radhikari
                        last edited by

                        I find Notepad++ easy and nice. Here please find some files which makes ruby editing in Notepad++ easier. The ruby.xml goes to plugins/API folder and the stylers.xml goes into C:\Documents And Settings(users)\application support\notepad++ (or something like that... I wish I had windows right now). Further instructions in the notepad++ website. ruby.xml makes the autocompletion easy.

                        Happy scripting!!!


                        Notepad++ autoCompletion for ruby and Sketchup

                        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