sketchucation logo sketchucation
    • 登入
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🔌 Smart Spline | Fluid way to handle splines for furniture design and complex structures. Download

    [Plugin] Ruby Console+ (3.0.2) – updated 30.10.2017

    已排程 已置頂 已鎖定 已移動 Plugins
    61 貼文 18 Posters 39.3k 瀏覽 17 Watching
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • A 離線
      Aerilius
      最後由 Aerilius 編輯

      This is a powerful Ruby Console with IDE features like code highlighting, autocompletion and a code editor. It lets you open multiple independent instances of the console and remembers the command history over sessions.

      Version: 3.0.2
      Date: 30.10.2017
      Requirements: SketchUp 2014+
      http://sketchucation.com/plugin/812-ae_console

      https://sketchucation.com/pluginrepo/image/ae_Console/console.png


      Info from older version:

      The buttons have the following features:

      • Clear: Clears the console output
      • Reload: Once you have manually loaded a script (" load"), it will be automatically reloaded when the file is changed. In this menu you can select which files are observed for changes.
      • Binding: Allows to change the context in which a command is executed from global (TOPLEVEL_BINDING) to a specific Class or instance for easier debugging. This allows you to execute private methods or access private instance variables.
      • Select Entity: Allows you to click an Entity in the model to get a reference to it in the console.
        By holding ctrl when the main window is focussed, you can select points and by holding shift you can turn on inferencing.
        You can also assign an entity to a reference name of you choice, by typing & selecting the variable name and then selecting the entity.
      • Preferences: A menu to change color theme and font size and other settings.
      • Ctrl+Space: Triggers the autocompletion. This plugin uses Ruby's reflection methods to get relevant and accurate autocompletions from the live ObjectSpace (instead from a static file).
      • Snippets: The suggestions for autocompletion include Ruby code snippets, where you can quickly fill in using the tab key. Snippets can be edited in ae_Console/js/ace/snippets/ruby_sketchup.js

      http://i42.tinypic.com/nzrcyt.gif

      Demonstration of autocompletion

      History:
      version 2.1.2: 13.02.2014

      • fix for typeerror on first start
        version 2.1.1: 13.02.2014
      • workaround for JavaScript error messages in ace.js
        version 2.1.0: 12.02.2014
      • updated the ace editor to 1.1.2 (which fixes auto-resizing issues)
      • ace's autocompleter connected to SketchUp's Ruby interpreter
      • ace's snippets
      • file observer to reload files automatically
      • fix: now modifier keys in the SketchUp window work when the webdialog has focus
        version 2.0.1:
        version 2.0.0: 13.06.2013
      • more robust webdialog communication (should avoid corruption of settings)
      • saves history immediately and to a file and separate from the preferences. Thus issues with escaping and registry reading are avoided.
      • new architecture supports several independent instances of the console
      • added: Select Entity tool
      • removed: JavaScript mode because it had unsolvable issues
        version 1.0.10: 15.05.2013
      • better support of higher dpi settings
        version 1.0.9: 01.03.2013
      • icon added
        version 1.0.8: 03.11.2012
      • removed debug messages that were left over by mistake
        version 1.0.7: 27.10.2012
      • improvements for initialization
        version 1.0.5: 30.08.2012
      • now it tracks also script errors
      • better webdialog communication
      • input field resizes more reliably
      • inspector: highlights entities in the model
      • "repeat" button: allows to quickly repeat previous input without browsing too long in the history
      • after clicking buttons, the input field gains focus again
      • many optimizations
        version 1.0.2: 10.07.2012
      • minor change: validates data before using execute_script.
        version 1.0.1: 07.07.2012

      animation Ruby Console+ 704.gif

      1 條回覆 最後回覆 回覆 引用 0
      • G 離線
        glro
        最後由 編輯

        i get error messages, and then the dialog box open but without the icons


        ae console error message

        1 條回覆 最後回覆 回覆 引用 0
        • A 離線
          Aerilius
          最後由 編輯

          Fixed! (Packaging mistake)

          1 條回覆 最後回覆 回覆 引用 0
          • A 離線
            Anton_S
            最後由 編輯

            Another Error
            Untitled.png

            1 條回覆 最後回覆 回覆 引用 0
            • J 離線
              Jim
              最後由 編輯

              Aerilius,

              Nice console, thanks.

              Anton,

              Why have you by-passed the installer and put the plugin in the Tools folder? The Tools folder is for SketchUp to use and it is recommended not to put anything there.

              Start by removing the ae_Console files and folder from SketchUp's Tools folder, and install the plugin correctly using the Windows > Preferences > Extensions > Install Extension button.

              Hi

              1 條回覆 最後回覆 回覆 引用 0
              • A 離線
                Anton_S
                最後由 編輯

                @jim said:

                Aerilius,

                Nice console, thanks.

                Anton,

                Why have you by-passed the installer and put the plugin in the Tools folder? The Tools folder is for SketchUp to use and it is recommended not to put anything there.

                Start by removing the ae_Console files and folder from SketchUp's Tools folder, and install the plugin correctly using the Windows > Preferences > Extensions > Install Extension button.

                LOL, did you monitor my comp?? 😲
                Exactly, I have it in tools folder. The reason is do to having 3 plugins folders: plugins draw - fredo tools+tt_lib+more, plugins game - sketchy physics, plugins testing - my plugins. I rename one of folders to plugins whenever I feel to use one of them. I jst wanted to eliminate the loading of all "plugins", and use the plugins that I want instead of loading all plugins. For me, the tools folder is like the "main plugins". Ruby console, window settings... is a good place for them - cause I use them in all plugins.

                Well, anyways thanks for pointing that out: moving it to plugins

                1 條回覆 最後回覆 回覆 引用 0
                • A 離線
                  Aerilius
                  最後由 編輯

                  I didn't get that error. I then tested on another computer where I had tested the beta version and got the error.
                  You probably have the beta version installed and the registry (Sketchup 8\Plugins_ae\Console) contains an old/invalid value.
                  The script errors in IE are very pertinacious. I'll try to validate the configuration before passing it into the webdialog.

                  1 條回覆 最後回覆 回覆 引用 0
                  • A 離線
                    Anton_S
                    最後由 編輯

                    @jim said:

                    Start by removing the ae_Console files and folder from SketchUp's Tools folder, and install the plugin correctly using the Windows > Preferences > Extensions > Install Extension button.

                    Hmm... it still gives me that error!

                    @aerilius said:

                    I didn't get that error. I then tested on another computer where I had tested the beta version and got the error.You probably have the beta version installed and the registry (Sketchup 8\Plugins_ae\Console) contains an old/invalid value. The script errors in IE are very pertinacious. I'll try to validate the configuration before passing it into the webdialog.

                    Errased, the beta, and all version, including this one, ran CCleaner, I guess I got it all removed using regedit, and it still gives me that error. How should error exist, when I cleaned-up after beta?

                    1 條回覆 最後回覆 回覆 引用 0
                    • A 離線
                      Aerilius
                      最後由 編輯

                      CCleaner doesn't do magic. I does a lot but I would be surprised if it (only) deleted HKEY_CURRENT_USER\Software\Google\SketchUp 8\Plugins_ae\Console.
                      The problem is that the only way to bring data from Ruby to SketchUp (execute_script) doesn't handle invalid data, it can't catch and suppress parsing errors.
                      I have a new version where I validate the data on the Ruby side before I pass it to the WebDialog. I'll upload it soon

                      1 條回覆 最後回覆 回覆 引用 0
                      • A 離線
                        Anton_S
                        最後由 編輯

                        @aerilius said:

                        ...upload it soon

                        That'll be great ❗

                        1 條回覆 最後回覆 回覆 引用 0
                        • A 離線
                          Aerilius
                          最後由 編輯

                          I uploaded a preliminary with the fix (1.0.2) to prevent this script error. I wanted to use my new webdialog communication system, but that isn't finished yet. It will come later.

                          1 條回覆 最後回覆 回覆 引用 0
                          • A 離線
                            Anton_S
                            最後由 編輯

                            @aerilius said:

                            I uploaded...

                            Good, good!! Thks 😄

                            1 條回覆 最後回覆 回覆 引用 0
                            • alexschreyerA 離線
                              alexschreyer Extension Creator
                              最後由 編輯

                              Ruby console on steroids! Very nice.

                              Cheers,
                              Alex

                              Author of "Architectural Design with SketchUp":
                              http://sketchupfordesign.com/

                              1 條回覆 最後回覆 回覆 引用 0
                              • A 離線
                                Aerilius
                                最後由 編輯

                                New features added:
                                inspector for SketchUp entities and many little improvements.

                                1 條回覆 最後回覆 回覆 引用 0
                                • A 離線
                                  Anton_S
                                  最後由 編輯

                                  Thankyou, thnakyou, thankyou!!!
                                  I use it all the time 👍

                                  1 條回覆 最後回覆 回覆 引用 0
                                  • Dan RathbunD 離線
                                    Dan Rathbun
                                    最後由 編輯

                                    I have sizing issues on XP w/ IE8 installed. (SU v8.0M4)


                                    RubyConsolePlus_1_0_5.PNG

                                    I'm not here much anymore.

                                    1 條回覆 最後回覆 回覆 引用 0
                                    • A 離線
                                      Aerilius
                                      最後由 編輯

                                      That is not (only) a sizing issue, the JavaScript does not run. Maybe something in the WebDialog-Ruby communication goes wrong and does not call the %(#000000)[initialize()] function?

                                      1 條回覆 最後回覆 回覆 引用 0
                                      • R 離線
                                        Reind Brackman
                                        最後由 編輯

                                        Just installed Ruby Console+ and my productivity doubled already.
                                        Also very good to avoid RSI, better known as 'lets load the damn script again command...'
                                        Thanks - great work.

                                        1 條回覆 最後回覆 回覆 引用 0
                                        • C 離線
                                          cesaro36
                                          最後由 編輯

                                          Hi
                                          Could anyone solve this issue?


                                          Same Problem

                                          1 條回覆 最後回覆 回覆 引用 0
                                          • A 離線
                                            Aerilius
                                            最後由 編輯

                                            What same problem? What browser? What version of the plugin?
                                            Can you try the latest version?

                                            1 條回覆 最後回覆 回覆 引用 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 1 / 4
                                            • 第一個貼文
                                              最後的貼文
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement