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

    WxWindows for SketchUp Dialogs

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

      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 條回覆 最後回覆 回覆 引用 0
      • C 離線
        CPhillips
        最後由 編輯

        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 條回覆 最後回覆 回覆 引用 0
        • M 離線
          Matt666
          最後由 編輯

          Cool !

          Frenglish at its best !
          My scripts

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

            @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 條回覆 最後回覆 回覆 引用 0
            • P 離線
              PeterCharles
              最後由 編輯

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

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

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

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

                  @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 條回覆 最後回覆 回覆 引用 0
                  • T 離線
                    tomasz
                    最後由 編輯

                    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

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

                      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 條回覆 最後回覆 回覆 引用 0
                      • D 離線
                        david.
                        最後由 編輯

                        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 條回覆 最後回覆 回覆 引用 0
                        • scottliningerS 離線
                          scottlininger
                          最後由 編輯

                          @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 條回覆 最後回覆 回覆 引用 0
                          • T 離線
                            tomot
                            最後由 編輯

                            @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
                            tomot

                            1 條回覆 最後回覆 回覆 引用 0
                            • P 離線
                              PeterCharles
                              最後由 編輯

                              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 條回覆 最後回覆 回覆 引用 0
                              • D 離線
                                david.
                                最後由 編輯

                                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 條回覆 最後回覆 回覆 引用 0
                                • chrisglasierC 離線
                                  chrisglasier
                                  最後由 編輯

                                  @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 條回覆 最後回覆 回覆 引用 0
                                  • T 離線
                                    tomot
                                    最後由 編輯

                                    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
                                    tomot

                                    1 條回覆 最後回覆 回覆 引用 0
                                    • T 離線
                                      tomot
                                      最後由 編輯

                                      @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
                                      tomot

                                      1 條回覆 最後回覆 回覆 引用 0
                                      • T 離線
                                        tomasz
                                        最後由 編輯

                                        @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

                                        1 條回覆 最後回覆 回覆 引用 0
                                        • P 離線
                                          peter3443
                                          最後由 編輯

                                          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 條回覆 最後回覆 回覆 引用 0
                                          • J 離線
                                            Jim
                                            最後由 編輯

                                            Welcome to the forums Peter; thanks for the update.

                                            Hi

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

                                            Advertisement