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

[Plugin] Ruby Toolbar

Scheduled Pinned Locked Moved Plugins
41 Posts 15 Posters 33.8k 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.
  • T Offline
    tomasz
    last edited by 4 Jul 2009, 18:58

    @jim said:

    Maybe I should combine the 2 plugins into 1?

    Jim,
    I use your plugin always when I deal with SU Ruby. Ability to run snippets would be the good addition.

    I have also noticed that your plugin doesn't work in Polish version of SU. In PL the console is called "Konsola Ruby". Is there a way to recognise the language of SU instead of the OS? I have SU6PL installed in Vista EN. πŸ˜„

    Thanks
    Tomasz

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

    1 Reply Last reply Reply Quote 0
    • T Offline
      tomasz
      last edited by 5 Jul 2009, 11:15

      I have checked and

      Sketchup.get_locale
      

      returns 'pl' string which is correct language for SU Version (SU6 PL).

      Tomasz
      EDIT
      Substituted os_language with get_locale

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

      1 Reply Last reply Reply Quote 0
      • P Offline
        pilou
        last edited by 5 Jul 2009, 12:21

        @btm
        Thx Indeed that's save and load but not in .rb in the Snippets apparently πŸ˜„
        That was my error πŸ˜„

        Frenchy Pilou
        Is beautiful that please without concept!
        My Little site :)

        1 Reply Last reply Reply Quote 0
        • T Offline
          thomthom
          last edited by 18 Aug 2010, 07:26

          I'm getting this error for the Clear Console button:
          Error: #<TypeError: no implicit conversion from nil to integer> C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/rubytoolbar.rb:94:incall'
          C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/rubytoolbar.rb:94:in moveConsole' C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/rubytoolbar.rb:66:in clearConsole'
          C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/rubytoolbar.rb:167
          C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/rubytoolbar.rb:167:in call'

          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 18 Aug 2010, 11:46

            What is the name of your Ruby Console in the title bar?

            Hi

            1 Reply Last reply Reply Quote 0
            • T Offline
              thomthom
              last edited by 18 Aug 2010, 11:51

              "Ruby Console"

              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 18 Aug 2010, 12:13

                I don't understand the error, then. Does WIn32API work on 64 bit machines? Can you try this version?


                rubytoolbar.zip

                Hi

                1 Reply Last reply Reply Quote 0
                • T Offline
                  thomthom
                  last edited by 18 Aug 2010, 12:32

                  @jim said:

                  Does WIn32API work on 64 bit machines?

                  Yes.
                  I have a working version of a snippet that clears the console. I can compare it against the one in your plugin.

                  @jim said:

                  Can you try this version?

                  I'll try.

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

                  1 Reply Last reply Reply Quote 0
                  • E Offline
                    everywinter
                    last edited by 18 Aug 2010, 15:02

                    Hi! Im a new user to ruby and i have just downloaded the file from your post but i cant seem to activate anything. I have the 'ruby console' under sketchup 'windows' but nothing's in there... Can you teach me what should i do? How should i start?

                    1 Reply Last reply Reply Quote 0
                    • J Offline
                      Jim
                      last edited by 18 Aug 2010, 15:28

                      Hi Geraldine,

                      The Ruby Console you mention in the Windows menu is SketchUp's built-in Ruby Console.

                      This plugin creates a Ruby Toolbar in the View >> Toolbars menu. The toolbar provides some shortcuts for using the Ruby Console and only runs on Windows machines.

                      506.png

                      So to install it, you download the .zip file, and extract it. Then copy the files to your Plugins folder as follows:

                      504.png

                      Then start Sketchup, and open the Toolbar from the Views >> Toolbars menu.

                      To find your Plugins folder, copy and paste this line to the Ruby Console, then press ENTER.

                      Sketchup.find_support_file("plugins")

                      Hi

                      1 Reply Last reply Reply Quote 0
                      • T Offline
                        thomthom
                        last edited by 5 Jan 2011, 09:51

                        Jim - A wee bug I found.

                        The Show/Hide Ruby Console toolbar:
                        If you have the toolbar floating, it'll be floating in a toolbar named "Ruby Console" - which means the Show/Hide method also closes the toolbar.

                        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 5 Jan 2011, 15:01

                          Ok, thanks Thomthom. I guess the Win32 functions were finding the toolbar instead of the actual Ruby Console?

                          Anyway, made that changes, and a few other minor ones:

                          Ruby Toolbar

                          Hi

                          1 Reply Last reply Reply Quote 0
                          • Didier BurD Offline
                            Didier Bur
                            last edited by 5 Jan 2011, 15:09

                            Thanks Jim, and happy new year.

                            DB

                            1 Reply Last reply Reply Quote 0
                            • J Offline
                              Jim
                              last edited by 5 Jan 2011, 15:14

                              Thank you, and a happy new year to you.

                              I am not sure if I should continue to include Win32API.so file with this plugin? Win32API.so is obsolete and we hope to be moving to something better in the near future.

                              Hi

                              1 Reply Last reply Reply Quote 0
                              • Dan RathbunD Offline
                                Dan Rathbun
                                last edited by 5 Jan 2011, 21:30

                                @everywinter said:

                                Hi! Im a new user to ruby and ... Can you teach me what should i do? How should i start?

                                Go to this post... Ruby Newbie's Guide to Getting Started

                                I'm not here much anymore.

                                1 Reply Last reply Reply Quote 0
                                • J Offline
                                  Jim
                                  last edited by 12 Jan 2011, 14:34

                                  Hello, I made a minor improvement:

                                  • Remembers most recently used folder and last loaded file between sessions.

                                  Link Preview Image
                                  Plugin: Ruby Toolbar

                                  This Windows-only plugin creates a Toolbar for controlling the Ruby Console It can open and close the Ruby console, clear the console, loa...

                                  favicon

                                  (sketchuptips.blogspot.com)

                                  Hi

                                  1 Reply Last reply Reply Quote 0
                                  • T Offline
                                    thomthom
                                    last edited by 12 Jan 2011, 14:52

                                    πŸ‘

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

                                    1 Reply Last reply Reply Quote 0
                                    • K Offline
                                      ksor
                                      last edited by 11 Feb 2012, 20:42

                                      Why do I get this load error when I try the "Ruby Toolbar"

                                      Error Loading File C:/Program Files/Google/Google SketchUp 8/Plugins/rubytoolbar/rubytoolbar.rb
                                      no such file to load -- Win32APIError Loading File rubytoolbar.rb
                                      no such file to load -- Win32API

                                      I have attached my PlugIns and rubytoolbar folders


                                      Plugins folder


                                      rubytoolbar folder

                                      Best regards
                                      KSor, Denmark
                                      Skype: keldsor

                                      1 Reply Last reply Reply Quote 0
                                      • TIGT Offline
                                        TIG Moderator
                                        last edited by 11 Feb 2012, 23:43

                                        Because you also need Win32API.so in the Plugins folder to run a few tools like this on a PC.
                                        It does say on the download page:
                                        @unknownuser said:

                                        Requirements
                                        Sketchup
                                        Windows
                                        Win32API.so (if not already installed)
                                        So get it here http://forums.sketchucation.com/viewtopic.php?f=323&t=42732&p=383201&hilit=win32ole#p383201
                                        Make sure you get the version to suit your SUp version.
                                        There are some useful docs too... IF you want to dabble with the dark-arts of these .so files... BUT please learn the basics first...
                                        While you are at it, also get Win32OLE.so - as I suspect you'll need it later when you get more adventurous... πŸ˜‰

                                        TIG

                                        1 Reply Last reply Reply Quote 0
                                        • Dan RathbunD Offline
                                          Dan Rathbun
                                          last edited by 12 Feb 2012, 13:22

                                          @tig said:

                                          Because you also need Win32API.so in the Plugins folder ...
                                          While you are at it, also get Win32OLE.so

                                          Both files are included in the "so" zips, I posted.

                                          (However, those are the only source object files from the Ruby distro, that are included.)

                                          I'm not here much anymore.

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

                                          Advertisement