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

    WxWindows for SketchUp Dialogs

    Scheduled Pinned Locked Moved Developers' Forum
    45 Posts 17 Posters 7.0k Views 17 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.
    • J Offline
      Jim
      last edited by

      Sang Ahn has posted this on the official GSU blog:

      @unknownuser said:

      wxSU is a plugin for Google SketchUp 6 that extends the SketchUp API with the capabilities of wxRuby. wxSU bundles wxRuby to provide a cross-platform, pure Ruby solution for implementing GUI dialogs in your SketchUp plugins.

      How cool is that?

      Hi

      1 Reply Last reply Reply Quote 0
      • C Offline
        CPhillips
        last edited by

        Interesting. I am going to poke at it and see if it is any good.

        I wish this had come out before I learned (much more than I wanted) about JavaScript, HTML and all the weird idiosyncrasies of IE vs Safari.

        1 Reply Last reply Reply Quote 0
        • M Offline
          Matt666
          last edited by

          Cool !

          Frenglish at its best !
          My scripts

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

            @cphillips said:

            Interesting. I am going to poke at it and see if it is any good.

            I wish this had come out before I learned (much more than I wanted) about JavaScript, HTML and all the weird idiosyncrasies of IE vs Safari.

            Me too. If this and WebDialogs had been released on the same day, I would have tried this first.

            It is cross-platform, by the way. For anyone trying to use WebDialogs, that's a huge advantage right now. Let us know how your experiments go.

            Hi

            1 Reply Last reply Reply Quote 0
            • P Offline
              PeterCharles
              last edited by

              It's the end of the week and my eye's are growing dim....
              Where's the link to wxSU???

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

                @#*$! drool ...this is very cool...!

                1 Reply Last reply Reply Quote 0
                • C Offline
                  cdubea
                  last edited by

                  @petercharles said:

                  It's the end of the week and my eye's are growing dim....
                  Where's the link to wxSU???

                  Link Preview Image
                  wxSU

                  Download wxSU for free. wxSU is a plugin for Google SketchUp that extends the SketchUp API with the capabilities of wxRuby. wxSU bundles wxRuby to provide a cross-platform, pure Ruby solution for implementing GUI dialogs in your SketchUp plugins.

                  favicon

                  SourceForge (sourceforge.net)

                  chris

                  http:www.dubea.orgchris_small.jpg

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    tomasz
                    last edited by

                    It is an excellent idea. I have installed beta 0.10.
                    The 'controls', probably the most important example, doesn't work for me under WinXP.
                    It displays just a window with File, Tooltips and Panel menus, but not controls visible on wxRuby webpage.
                    As far as I understand this is rather an alpha? Isn't it?

                    Tomasz

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

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

                      The controls example does work for me under XP. But it also does crash frequently.

                      The author has it listed as a Beta status, but the version is 0.1.0 indicating a very early release.

                      Hi

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        david.
                        last edited by

                        It's too bad that the SketchUp team didn't follow through on the UI support within the Ruby API. It's not bad, but it's could be a heck of a lot better.

                        I'm a bit concerned about wxSU because it seems just another potentially poorly supported or unsupported package. At least Javascript and HTML have well known, supported standards. They won't go away anytime soon.

                        1 Reply Last reply Reply Quote 0
                        • scottliningerS Offline
                          scottlininger
                          last edited by

                          @david. said:

                          It's too bad that the SketchUp team didn't follow through on the UI support within the Ruby API. It's not bad, but it's could be a heck of a lot better.

                          This is a good point. On one hand, you could argue that WebDialogs are the answer to complex UI inside SU, but in practice I think it's hard to find developers who are experts at ruby AND html AND javascript, which is largely what's needed to create solid UI inside a webdialog.

                          If people have seen any UI APIs that are worth looking at as a potential model for how we could extend Ruby UI support, please let me know.

                          • Scott Lininger
                            SketchUp Software Engineer
                            Have you visited the Ruby API Docs?
                          1 Reply Last reply Reply Quote 0
                          • T Offline
                            tomot
                            last edited by

                            @unknownuser said:

                            This is a good point. On one hand, you could argue that WebDialogs are the answer to complex UI inside SU, but in practice I think it's hard to find developers who are experts at ruby AND html AND javascript, which is largely what's needed to create solid UI inside a webdialog.

                            If people have seen any UI APIs that are worth looking at as a potential model for how we could extend Ruby UI support, please let me know.

                            I think you guys started by using a hammer when you could have developed a scalpel. Archicad for example has a standardized built-in GUI, It does not need to be created each time someone wants to develop GDL scripts, to interact with the main program. Neither do I have to quit the main program just to restart the script to see if it works. I can run any script and see the results in its own window in 3d, and the error checking routine will point to any error in the script. In addition GDL is written in Basic, while not as code-dejour as Ruby its robust enough to develop complex 3d objects for ArchiCad.
                            Now that your down the road with the hammer your finding its to clumsy, so you try to fix it with adding more and more STUFF. Which means you will alienate guys like me, which are already less that .1% of SU users, that are already struggling with Ruby, and really don't care to learn 2 more languages just so I can make a simple script look good in a GUI.

                            Its to bad those learning programming today, are not taught the principle "less is more"

                            [my plugins](http://thingsvirtual.blogspot.ca/)
                            tomot

                            1 Reply Last reply Reply Quote 0
                            • P Offline
                              PeterCharles
                              last edited by

                              I may well get flamed but....

                              Multiple programming languages are the bain of my life! I'm a user and part time programmer so I want to be able to do something easily.

                              To illustrate, my problems started with web pages, where I needed an understanding of HTML. But some things HTML couldn't do so then I needed an understanding of JavaScript. But some code I didn't want exposed so I needed an understanding of Perl for CGI scripting. Then PHP became available so I needed an understanding of that (although I could drop Perl).

                              I had a CAD program with a straightforward macro programming language. But it had no GUI, but you could use VB to create one and interact with the program and macro so there was another program.

                              SketchUp came and I needed to have an understanding of Ruby.

                              I needed to automate Word, whose macro language was VBA. Still having now used VB I had a head start.

                              The main CAD software where I work is ACAD and Inventor, those macro languages are VBA. Oh, that's handy, worked with that before.

                              Finally, I had to create an on-line configurator for some machine selection as a Java Applet, so now I needed to have an understanding of Java.

                              MY BRAIN HURTS DOCTOR!!!!!! 👊

                              1 Reply Last reply Reply Quote 0
                              • D Offline
                                david.
                                last edited by

                                Nice point Peter, I feel your pain. I've gone through many languages, too. I like Ruby, but I already knew Perl, among others. And, this next point is not unique to Ruby, but it has had a number of recent security flaws. How do the fixes get patched into the SketchUp Ruby API? Seems like they will only come when a new version of SketchUp is released. Personally, I don't think this is good practice. But, the genie is out of the bottle, now.

                                I think people are trying to build a better mouse trap. And, programming languages are like "opinions"... everyone seems to have one.

                                1 Reply Last reply Reply Quote 0
                                • chrisglasierC Offline
                                  chrisglasier
                                  last edited by

                                  @unknownuser said:

                                  This is a good point. On one hand, you could argue that WebDialogs are the answer to complex UI inside SU, but in practice I think it's hard to find developers who are experts at ruby AND html AND javascript, which is largely what's needed to create solid UI inside a webdialog.

                                  If people have seen any UI APIs that are worth looking at as a potential model for how we could extend Ruby UI support, please let me know.

                                  I don't know whether you have looked at this topic http://www.sketchucation.com/forums/scf/viewtopic.php?f=80&t=12770. I am not expert at html and javascript, and the only ruby coding I have learnt from SFC experts like Jim and you (both web dialog video and blog). But I have learnt enough to design namesets to connect up quite different disciplines in a single endeavour ( e.g. the completion of a building project), with Sketchup components a key element.

                                  One member, Andrew Dwight (aadBuild), advised me in a PM that however good the concept, people still needed to see the detail of what it can do; I have been working on more video clips and commentary for that and hope to add a new post to the nameset intro videos topic this weekend.

                                  I hope you find this interesting.

                                  Chris

                                  New post done - please use link in original post.

                                  With TBA interfaces we can analyse what is to be achieved so that IT can help with automation to achieve it.

                                  1 Reply Last reply Reply Quote 0
                                  • T Offline
                                    tomot
                                    last edited by

                                    I can see this thread is about to die!

                                    If anyone would like another example, of how other 3d software programs
                                    have integrated languages into their main program, have a look at Modo.
                                    http://www.luxology.com/whatismodo/
                                    with special reference to
                                    http://www.vertexmonkey.com/scripts_modeling_create.php
                                    Here is a community which provides scripts written in Perl and Python
                                    which integrate seamlessly into Modo. Modo provides the Dialog interface.

                                    And while I see some forum members going GAGA over a commercial Profiler for SU.
                                    Its no big deal for Modo, someone has provided one since the release of Modo 201.
                                    Modo 201 come out about 2 years ago.

                                    [my plugins](http://thingsvirtual.blogspot.ca/)
                                    tomot

                                    1 Reply Last reply Reply Quote 0
                                    • T Offline
                                      tomot
                                      last edited by

                                      @unknownuser said:

                                      Then why are you 'going GAGA' over Modo?

                                      I'm not going "GAGA over ArchiCad nor Modo", I'm simply mentioning these programs have had more success in how to integrate addon language components into their main program. Its my hope that SU will improve, and perhaps someone on their staff will look at those examples. ....That's ALL!

                                      I'm quite sure anyone that has ever written a Ruby program, would love to see a standardized Ruby GUI interface, becoming part of the next major release of SU.

                                      [my plugins](http://thingsvirtual.blogspot.ca/)
                                      tomot

                                      1 Reply Last reply Reply Quote 0
                                      • T Offline
                                        tomasz
                                        last edited by

                                        @jim said:

                                        The controls example does work for me under XP. But it also does crash frequently.

                                        Jim, you probably have Ruby installed, have you? I don't have. Will see if it helps.

                                        I hope this solution will be developed, as I hate playing with HTML and JavaS (I have already tied and have some 'success'). I would love to use Wx without bugsplats.

                                        Tomasz

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

                                        1 Reply Last reply Reply Quote 0
                                        • P Offline
                                          peter3443
                                          last edited by

                                          I've just posted version 0.2 of the wxSU plugin.

                                          You can download it here: http://wxsu.sourceforge.net/

                                          The new release fixes several bugs, updates to wxRuby 1.9.9, and has a few other improvements.

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

                                            Welcome to the forums Peter; thanks for the update.

                                            Hi

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

                                            Advertisement