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

    [Plugin] SUTool: a new way to manager your RB script

    Scheduled Pinned Locked Moved Plugins
    47 Posts 18 Posters 140.5k Views 18 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.
    • W Offline
      wikii
      last edited by

      Try to copy iconv.so(in plugins\sutool\ro) to plugins folder...

      1 Reply Last reply Reply Quote 0
      • Z Offline
        zuosiyang
        last edited by

        haha ...wikii....you... i'm orange

        1 Reply Last reply Reply Quote 0
        • D Offline
          Daniel S
          last edited by

          @wikii said:

          Try to copy iconv.so(in plugins\sutool\ro) to plugins folder...

          The problem is still the missing "inconv.dll". Someone has the same problem?? Perhaps it´s only me.

          Daniel S

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

            @daniel s said:

            @wikii said:

            Try to copy iconv.so(in plugins\sutool\ro) to plugins folder...

            The problem is still the missing "inconv.dll". Someone has the same problem?? Perhaps it´s only me.

            Daniel S

            iconv.dll comes when you install the full Ruby language. I have uploaded it here, but I'm not sure where to tell you to put it - I would try in the SUTools folder first, or the Plugins folder. It might not work at all.

            The plugin works well for me. I will write up a quick How-to.

            Hi

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

              wikii,

              This is a very nice plugin.

              I would like to make a suggestion: can you make the tool window so it remembers it's size?

              Hi

              1 Reply Last reply Reply Quote 0
              • W Offline
                wikii
                last edited by

                @zuosiyang said:

                haha ...wikii....you... i'm orange

                Hi,Fly_Orange.. 😍

                1 Reply Last reply Reply Quote 0
                • W Offline
                  wikii
                  last edited by

                  Jim
                  WebDialog has no methods to get the window's position, 😞
                  I hava tried to get screen size using JavaScript in html with get_element_value methods,it can work in SU ruby panel.

                  In html:

                  @unknownuser said:

                  <script language="javascript">
                  document.write('<div style="display:none;" ><input type="text" name="textfield" id="screen_width" style="width:150px;" value="'+ screen.width + '" /></div>')</javascript>

                  In rb program:

                  @unknownuser said:

                  $dlg.get_element_value "screen.width"

                  when the program is running, $dlg.get_element_value "screen.width" always get nothing;but in ruby panel,$dlg.get_element_value "screen.width" return "1680",that's exact my screen width!
                  If somebody can tell me why and give me some advice, SUTool will go farther.

                  If not, I will add a setting file to SUTool.User can modify it manually.

                  Another question,Jim,have you installed the full Ruby language?

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

                    wikii,

                    Yes, I have installed the full Ruby language installation.

                    The WebDialog should remember it's location if you have provided it the "preferences_key" option. Just don't call the set_size method and it should use the last size and location automatically.

                    Hi

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      Daniel S
                      last edited by

                      @jim said:

                      iconv.dll comes when you install the full Ruby language. I have uploaded it here, but I'm not sure where to tell you to put it - I would try in the SUTools folder first, or the Plugins folder. It might not work at all.

                      The plugin works well for me. I will write up a quick How-to.

                      Thank you Jim!!! I don´t get the error when i put the iconv.dll in the plugins folder.
                      But i cannot find how to start the webdialog... is not on plugins.. tools... nowhere?

                      Thank you again,
                      Daniel S

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

                        Daniel,

                        It should be in the Plugins menu:

                        02_menu.jpg

                        Hi

                        1 Reply Last reply Reply Quote 0
                        • D Offline
                          Daniel S
                          last edited by

                          Not in my plugins menu..
                          Perhaps is because i have not installed the full Ruby language 😒

                          Daniel S

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

                            @daniel s said:

                            Not in my plugins menu..
                            Perhaps is because i have not installed the full Ruby language 😒

                            Daniel S

                            The iconv.dll and iconv.so files are used for converting or translating strings. I think if you edit the convert.rb file in the RO folder you can make it work.

                            
                            #require "iconv"
                            def sutool_convert_string(s)
                             # Iconv.iconv("GB2312//IGNORE","uTF-8//IGNORE",s)[0]
                              s
                            end
                            
                            

                            Hi

                            1 Reply Last reply Reply Quote 0
                            • D Offline
                              Daniel S
                              last edited by

                              Thank you Jim!!!! Now is working!!! 😍

                              And i try removing the iconv.dll and works too... the problem was the convert.rb code.

                              Now i have to see how to add the plugins 😄

                              Thank you again!!
                              Daniel S

                              EDIT: the iconv.dll is needed.. if you open more than one sketchup it pop-up a msg. With the .dll in the plugins folder all works fine.


                              working.JPG

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

                                This plugin is really good for all those "other", infrequently used plugins you use.

                                You can create any number of dropdown menus. The menus are controlled by .ini files - one for each menu.

                                In the SuTools folder there is a sub-folder named "ini" Inside are the files that the plugin uses to create each menu. Each ini file start with a 2-digit code - the code goves the order of the menus in the plugin dialog. The 2-digit code is followed by the menu name.

                                
                                01SelectTool.ini
                                02FaceTools.ini
                                ...
                                
                                

                                Before you begin adding plugins, you can create your own personal menu list. Just create a new, blank file using the ##Name.ini code.

                                When you reload SuTools plugin, your menu will be available.

                                Hi

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

                                  Hem hem, I can't read chinese... 🎉

                                  DB

                                  1 Reply Last reply Reply Quote 0
                                  • W Offline
                                    wikii
                                    last edited by

                                    here SUTool v0.08 comes.


                                    SUTool v0.07.rar


                                    SUTool_v0.08en.rar

                                    1 Reply Last reply Reply Quote 0
                                    • W Offline
                                      wikii
                                      last edited by

                                      V0.08 has corrected two bugs that cause SUTool loading error.
                                      Now,SUTool window can remembers it's size and position,Thank to Jim!

                                      1 Reply Last reply Reply Quote 0
                                      • JClementsJ Offline
                                        JClements
                                        last edited by

                                        Jim,

                                        Been try to decipher this thread. Looks like a convenient way to organize/reorganize scipts.

                                        Would you mind summarizing "how" this works (in general terms), how to install and modify?

                                        J

                                        John | Illustrator | Beaverton, Oregon

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

                                          I'm working on a tutorial now... and here it is. I hope it's good.

                                          1.26 MB Flash Tutorial made using Wink

                                          Hi

                                          1 Reply Last reply Reply Quote 0
                                          • F Offline
                                            Fletch
                                            last edited by

                                            Hi Wikii! This is just what I've been wishing for! Great work! Thank you!

                                            Sorry to write with a problem...

                                            I downloaded this: SUTool_v0.08en.rar

                                            It seems to load just fine, but I get this...


                                            translation prob?

                                            Fletch
                                            Twilight Render Cross-platform Plugin for SketchUp on PC or Mac

                                            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