• 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 15 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.
  • G Offline
    Gaieus
    last edited by 19 Nov 2007, 05:13

    @didier bur said:

    ...The title of the Ruby console window in french is "Console Ruby". This could cause the problem...

    Thank God I don't need to deal with a "native" version of SU! ๐Ÿ˜„

    Gai...

    1 Reply Last reply Reply Quote 0
    • D Offline
      Didier Bur
      last edited by 19 Nov 2007, 05:14

      Everything's OK with the french version now, including toggle
      Only minor tweaks were necessary ๐Ÿ˜†

      DB

      1 Reply Last reply Reply Quote 0
      • J Offline
        Jim
        last edited by 19 Nov 2007, 05:15

        @didier bur said:

        Everything's OK with the french version now, including toggle
        Only minor tweaks were necessary ๐Ÿ˜†

        Great! But would you mind sharing the minor tweaks so maybe I can make the toolbar more international?

        Hi

        1 Reply Last reply Reply Quote 0
        • D Offline
          Didier Bur
          last edited by 19 Nov 2007, 05:15

          Hi Jim,

          @unknownuser said:

          would you mind sharing the minor tweaks

          I'm afraid it would be useless because I simply replaced all the calls to "Ruby Console" by "Console Ruby", but that's only for french. Each version of SU does have a particular name for the Ruby Console, so... Even a call to langhandler.rb (with 'getstring') will not work since this deals with a window name, not a message string or such. ๐Ÿ˜ž

          Regards,

          DB

          1 Reply Last reply Reply Quote 0
          • J Offline
            Jim
            last edited by 19 Nov 2007, 05:16

            @didier bur said:

            Hi Jim,

            @unknownuser said:

            would you mind sharing the minor tweaks

            I'm afraid it would be useless because I simply replaced all the calls to "Ruby Console" by "Console Ruby", but that's only for french. Each version of SU does have a particular name for the Ruby Console, so... Even a call to langhandler.rb (with 'getstring') will not work since this deals with a window name, not a message string or such. ๐Ÿ˜ž

            Regards,

            Didier, GetString would work, but since it's only one string, I won't use LangHandler. I've updated the plugin to support FR.

            Hi

            1 Reply Last reply Reply Quote 0
            • C Offline
              CPhillips
              last edited by 19 Nov 2007, 05:17

              Hi Jim,

              I love this toolbar. I use it constantly.

              Feature request: How about saving the state and position of the console in the registry? So if I close and reopen Sketchup it remembers if the console was open and where it was.

              Also If you want I could give you the code to read the console log window. Saving is the only use I can think of. But maybe it could be parsed to some effect.

              Chris

              1 Reply Last reply Reply Quote 0
              • J Offline
                Jim
                last edited by 19 Nov 2007, 05:18

                Thanks Chris,

                The version I posted on SketchyUtils isn't up-to-date, I'll remove it. Download the version available in this thread.

                The position and size are saved in the registry, but only if the console is closed using the toolbar. Is it possible to save these settings if the console is closed using the X widget?

                Hi

                1 Reply Last reply Reply Quote 0
                • C Offline
                  CPhillips
                  last edited by 19 Nov 2007, 05:18

                  Ah, much better. Yeah I was still using the old one.

                  I didn't even know this subsection of the forums was here until yesterday.

                  As far as detecting the window close message. It wouldn't be easy. One thing you could do is just check the position of the window ever 10 sec or so and see if it has moved/closed.

                  Regards
                  Chris

                  1 Reply Last reply Reply Quote 0
                  • P Offline
                    pilou
                    last edited by 4 Jul 2009, 14:31

                    Why put the "ruby console" and not the "Web Console" of Jim Foltz?
                    Seems it is more easy using? ๐Ÿ˜„
                    (but I am totally new beginner in Ruby script ๐Ÿ’š

                    PS With the Webconsole seems you can't save (bug ?) ๐Ÿ˜ฎ

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

                    1 Reply Last reply Reply Quote 0
                    • B Offline
                      BTM
                      last edited by 4 Jul 2009, 14:57

                      @unknownuser said:

                      Why put the "ruby console" and not the "Web Console" of Jim Foltz?
                      Seems it is more easy using? ๐Ÿ˜„
                      (but I am totally new beginner in Ruby script ๐Ÿ’š

                      PS With the Webconsole seems you can't save (bug ?) ๐Ÿ˜ฎ

                      You can save, it just doesn't say that you have the same file open after that. it's weird.

                      1 Reply Last reply Reply Quote 0
                      • J Offline
                        Jim
                        last edited by 4 Jul 2009, 16:37

                        Maybe I should combine the 2 plugins into 1?

                        Hi

                        1 Reply Last reply Reply Quote 0
                        • 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
                              • thomthomT 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
                                  • thomthomT 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
                                      • thomthomT 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
                                          • 1
                                          • 2
                                          • 3
                                          • 1 / 3
                                          • First post
                                            Last post
                                          Buy SketchPlus
                                          Buy SUbD
                                          Buy WrapR
                                          Buy eBook
                                          Buy Modelur
                                          Buy Vertex Tools
                                          Buy SketchCuisine
                                          Buy FormFonts

                                          Advertisement