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] HouseBuilder metric 1.2

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

      Hi,
      I'm puzzled because the "split" method is called several dozens of times in the code so I can't localize exactly where there's something wrong at startup. Maybe it's a Mac issue. Do you have a file "housebuilder_sections.txt in the HouseBuilder folder ? I guess yes...
      Give me some time to search...But take a look at the top of this thread, other people on Mac have the same issue as yours.

      DB

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

        wow, thank you very much! this is awesome

        pav

        Just won the 'Who is Least Competitive Championships' where trying to win will make you lose. Trying to lose makes you win which makes you lose. Not trying at all makes you lose which makes you win which makes you lose.

        1 條回覆 最後回覆 回覆 引用 0
        • D 離線
          dayakar78mac.com
          最後由 編輯

          @didier bur said:

          Hi,
          I'm puzzled because the "split" method is called several dozens of times in the code so I can't localize exactly where there's something wrong at startup. Maybe it's a Mac issue. Do you have a file "housebuilder_sections.txt in the HouseBuilder folder ? I guess yes...
          Give me some time to search...But take a look at the top of this thread, other people on Mac have the same issue as yours.

          Hi Didier,

          Thank you for the response. Yes, I do have have housebuilder_sections.txt in the HouseBuilder subfolder. This script is very useful, I saw the demo of this script at http://sites.google.com/site/3dbasecamp2008/all-sessions-2008/maxing-out-your-productivity-with-ruby-scripts.

          Regards,
          Dayakar

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

            Greetings to all.

            Didier, just a quick note - I just wanted you to know that I am also having the same issues with my mac.

            "Error Loading File HouseBuilder_extension.rb
            private method `split' called for nil:NilClass"

            Any ideas?

            I tried to look for the "offending line" in the script but I quickly became confused. Is it "HouseBuilder_extension.rb", (which is not scrambled)
            or "HouseBuilder.rb", or "HouseBuilderTool.rb" (both of which are scrambled)?

            Please advise. I'm sure many of us in the Mac community would be very appreciative if we could get this to work!

            cheers from Berlin,

            Jason

            1 條回覆 最後回覆 回覆 引用 0
            • Didier BurD 離線
              Didier Bur
              最後由 編輯

              Hi
              It is probably in "HouseBuilder_extension.rb" there.
              I suspect this line is the offending one:

              su_path = Sketchup.find_support_file("Sketchup.exe").split("Sketchup.exe")[0]

              because there's no exe files on Mac, and they are located elsewhere. So su_path variable is nil, and when the script tries to locate the txt sections files, the su_path is splitted starting from a nil value, which raises error. (hope i'm clear 😳 )
              I'll take a look at this asap, but I'm very busy these days... Here is my todo list, apart from corporate devs:

              Terrain reshaper
              Housebuilder for Mac
              Transformer keys positions
              Align tool -> copy option
              Extrudelinesalongpath (follow me for lines)
              SU2STL & Heightfield_gen : binary tests
              Instancing brush for compo spray
              SU2POV mat editor sliders

              😄

              DB

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

                bonjour didier ...

                ok, i will see what i can do to make it work. note i am a total non-programmer, but maybe i'll have some luck and you can strike it off your list! i'll report back when i know if i have any success or not 😉

                a bientôt!

                jason

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

                  Cher Didier,

                  Bonjour! Alors, here's the report: I can't find the line you are talking about in the script. Pas trouve! It must be in one of the two scrambled files. Je regrete! Please advise if there is another way I can help!

                  best wishes from Berlin,

                  Jason

                  1 條回覆 最後回覆 回覆 引用 0
                  • H 離線
                    Hazza
                    最後由 編輯

                    Is it possible to change this so that the wall (or whatever) you just created is undone in one go?

                    See all of my SketchUp models here.

                    1 條回覆 最後回覆 回覆 引用 0
                    • M 離線
                      MrPlanet
                      最後由 編輯

                      Hi! i want to delete housebuilder from my computer but it says it is being used by another person when sketchup is closed,can someone tell me what's happening?,thanks

                      I reject your reality and substitute my own.

                      1 條回覆 最後回覆 回覆 引用 0
                      • F 離線
                        flo
                        最後由 編輯

                        I got here when I was looking for the answer to the post How do I print ti scale in SketchUp? I didn't find the answer but I found u guys talking about housebuilder. What is that?

                        1 條回覆 最後回覆 回覆 引用 0
                        • L 離線
                          linea
                          最後由 編輯

                          Thanks for the new script!

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

                            its possible to translate ? i mean i dont know much about ruby (nothing actually), then this interesting plugin i wanted to use in spanish... then i see in the file : HouseBuilder_extention.rb some calls... like

                            # Floor tool
                              cmd3 = UI;;Command.new(("Floor tool")) { Sketchup.active_model.select_tool HouseBuilder;;FloorTool.new }
                              cmd3.small_icon = "HouseBuilder/hb_floortool_S.png"
                              cmd3.large_icon = "HouseBuilder/hb_floortool_L.png"
                              cmd3.tooltip = "Creates a floor."
                              hb_tb.add_item(cmd3)
                            

                            then i want to know if i can replace the texts between "" without affect the plugin?. 😎

                            1 條回覆 最後回覆 回覆 引用 0
                            • TIGT 離線
                              TIG Moderator
                              最後由 編輯

                              @rodericx said:

                              its possible to translate ? i mean i dont know much about ruby (nothing actually), then this interesting plugin i wanted to use in spanish... then i see in the file : HouseBuilder_extention.rb some calls... like

                              # Floor tool
                              >   cmd3 = UI;;Command.new(("Floor tool")) { Sketchup.active_model.select_tool HouseBuilder;;FloorTool.new }
                              >   cmd3.small_icon = "HouseBuilder/hb_floortool_S.png"
                              >   cmd3.large_icon = "HouseBuilder/hb_floortool_L.png"
                              >   cmd3.tooltip = "Creates a floor."
                              >   hb_tb.add_item(cmd3)
                              

                              then i want to know if i can replace the texts between "" without affect the plugin?. 😎

                              Text within "" or even '' can be replaced with anything else you want - i.e. a translation... UNLESS it's a path to a file xxx/xxx/xxx.png etc DON'T change anything else - the worse that can happen is it won't work ! 😮
                              Keep a copy of the original ! 😒

                              TIG

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

                                @tig said:

                                @rodericx said:

                                its possible to translate ? i mean i dont know much about ruby (nothing actually), then this interesting plugin i wanted to use in spanish... then i see in the file : HouseBuilder_extention.rb some calls... like

                                # Floor tool
                                > >   cmd3 = UI;;Command.new(("Floor tool")) { Sketchup.active_model.select_tool HouseBuilder;;FloorTool.new }
                                > >   cmd3.small_icon = "HouseBuilder/hb_floortool_S.png"
                                > >   cmd3.large_icon = "HouseBuilder/hb_floortool_L.png"
                                > >   cmd3.tooltip = "Creates a floor."
                                > >   hb_tb.add_item(cmd3)
                                

                                then i want to know if i can replace the texts between "" without affect the plugin?. 😎

                                Text within "" or even '' can be replaced with anything else you want - i.e. a translation... UNLESS it's a path to a file xxx/xxx/xxx.png etc DON'T change anything else - the worse that can happen is it won't work ! 😮
                                Keep a copy of the original ! 😒

                                Hello!!
                                I'm a spanish user of Sketchup, i'm translating a lot of plugins for SU to spanish language.
                                I have finished the translation of House Builder ver. 1.0, and it works fine in Mac, only one problem, some units in the options of the tools are in inches, and i work in metres but it's a minor problem, the rest is OK.
                                I can't translate The House Builder ver. 1.2 because the files HouseBuilder.rb and HouseBuilderTool.rb are encoded, i have translated the HouseBuilder_extension.rb only, the icons appear and the tooltip too in spanish, but don't works in Mac, it appears the same problem:
                                Error al cargar archivo HouseBuilder_extension.rb
                                private method `split' called for nil:NilClass

                                I would like upload the Spanish version of House Builder v. 1.0 for all users and the others plugins. Please, tell me how.

                                1 條回覆 最後回覆 回覆 引用 0
                                • Didier BurD 離線
                                  Didier Bur
                                  最後由 編輯

                                  Hi,
                                  Open the file in a text editor and go to line 34. It reads like this:

                                  su_path = Sketchup.find_support_file("Sketchup.exe").split("Sketchup.exe")[0]
                                  

                                  The problem is that there's no ".exe" files on Mac. Try to remove ".exe":

                                  su_path = Sketchup.find_support_file("Sketchup").split("Sketchup")[0]
                                  

                                  and see if it works.

                                  Regards,

                                  DB

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

                                    Not specifically to do with Didiers metric version, but I recently posted a few bug fixes relating to door opening size/position and that infuriating beep every time you context menu on http://forums.sketchucation.com/viewtopic.php?f=15&t=26858

                                    I'm thinking of breaking out the different functions and rewriting some of the less pretty code but to be honest I find Ruby such an unpleasant system to work in that it rather puts me off. Maybe I should just build an interface to Smalltalk.

                                    1 條回覆 最後回覆 回覆 引用 0
                                    • Q 離線
                                      quick
                                      最後由 編輯

                                      Bump
                                      Any word on fixes for Metric 1.2 Mac version?
                                      the files are scrambled, and i can't find any reference to sketchup.exe in the unscrambled file. could really do with a metric wall builder...

                                      1 條回覆 最後回覆 回覆 引用 0
                                      • K 離線
                                        krokodandi
                                        最後由 編輯

                                        @unknownuser said:

                                        Real sweet, thx Didier! 😉

                                        thx Didier real work 😎

                                        1 條回覆 最後回覆 回覆 引用 0
                                        • GwyattG 離線
                                          Gwyatt
                                          最後由 編輯

                                          Bump

                                          any news on the mac fix i tried to edit on my mac to no joy scrambled code love this pack please point in right place if i'm looking wrong place

                                          1 條回覆 最後回覆 回覆 引用 0
                                          • Didier BurD 離線
                                            Didier Bur
                                            最後由 編輯

                                            Hi,
                                            Here is an 'unscrambled' version of the main script, with no reference to Sketchup.exe.
                                            Hope it will work on Mac.
                                            Regards,


                                            Overwrite House_builder_extension.rb in your Plugins folder with this one.

                                            DB

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

                                            Advertisement