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

    New(ish) HouseBuilder ruby?

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    14 Posts 8 Posters 3.8k Views 8 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.
    • jeff hammondJ Offline
      jeff hammond
      last edited by

      it's still there.. house builder is on this page:
      http://rhin.crai.archi.fr/RubyLibraryDepot/Ruby/en_arc_page.htm

      [and for some reason, i always have to right-click then download linked file from crai otherwise the actual ruby text will open in my browser.. the zip files work normally]

      edit-- here's the main site address now:
      http://rhin.crai.archi.fr/RubyLibraryDepot/Ruby/RUBY_Library_Depot.htm

      searching will link to the old address though so it's not much use..

      dotdotdot

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

        Interesting - a single link did eventually arrive at a place that didn't 404 on me. Sadly it only seems to provide the old and apparently buggy plugin.
        It doesn't fill me with confidence to see right at the beginning of the HouseBuilder_extension.rb -

        Floor tool

        cmd3 = UI::Command.new(("Wall 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)

        Wall tool

        cmd1 = UI::Command.new(("Wall tool")) { Sketchup.active_model.select_tool HouseBuilder::WallTool.new }
        cmd1.small_icon = "HouseBuilder/hb_walltool_S.png"
        cmd1.large_icon = "HouseBuilder/hb_walltool_L.png"
        cmd1.tooltip = "Creates a wall."
        hb_tb.add_item(cmd1)

        Surely building two commands with the same name can't be a good idea?

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

          OK, I managed to debug (good grief, Ruby is horrible) the issue with the door frame being offset (silly arithmetic error, easily fixed once spotted) and the weird-things-with-two-doors stopped after replacing the wall.

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

            Aaaannd... now I've managed to remove a really stupid bug that made the system beep every time you click for a context menu and the selection is not a wall. SIgh.

            1 Reply Last reply Reply Quote 0
            • GaieusG Offline
              Gaieus
              last edited by

              Ah, that's the infamous beep with housebuilder!
              😄

              Gai...

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

                Dear Tim,

                Perhaps you could release your de-bugged version. I am sure that it would be useful to some Forum members. What is the etiquette here?

                Kind regards,
                Bob

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

                  @watkins said:

                  Perhaps you could release your de-bugged version.

                  I'm perfectly happy to do so; if anyone wants to package it up that's fine by me; I guess Didier is the best candidate.

                  Here it is anyway - modified Housebuilder.rb with the door sizing fixed to compensate for the rough opening offset and the stupid beep fixed. There is still a huge amount that could be improved.
                  modified by tim Rowledge to fix a couple of bugs

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

                    Dear Tim,

                    Thank you for doing that. I'm sure that others will appreciate having a de-bugged version.

                    Kind regards,
                    Bob

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

                      Hello all,
                      Tim, thanks for the bug fixes. I found this thread doing a search to get rid of the beep you described. I downloaded the new .rb file and put it in my Housebuilder subfolder under Plugins, replacing the one that was there. However, I'm still getting the beep anytime I select the EDIT menu as well as every time I right-click on a drawing. Was this the beep that was address and, if so, are there more steps I need to take?

                      Thanks,
                      -mike

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

                        @mikeh said:

                        However, I'm still getting the beep anytime I select the EDIT menu as well as every time I right-click on a drawing. Was this the beep that was address and, if so, are there more steps I need to take?

                        Ah. Yes, you need to slap me upside the head to upload the correct file. I forgot that I altered the HousebuilderTool.rb as well. So here it is.
                        HouseBuilderTool.rb

                        1 Reply Last reply Reply Quote 0
                        • G Offline
                          gladtobegrey
                          last edited by

                          Thanks for this ... I wondered where that 'plink-plonk' appeared from (I don't always have sound on, so didn't immediately associate it with Housebuilder).

                          1 Reply Last reply Reply Quote 0
                          • E Offline
                            egarstang
                            last edited by

                            @tim said:

                            @mikeh said:

                            However, I'm still getting the beep anytime I select the EDIT menu as well as every time I right-click on a drawing. Was this the beep that was address and, if so, are there more steps I need to take?

                            Ah. Yes, you need to slap me upside the head to upload the correct file. I forgot that I altered the HousebuilderTool.rb as well. So here it is.
                            [attachment=0:1lxtvlte]<!-- ia0 -->HouseBuilderTool.rb<!-- ia0 -->[/attachment:1lxtvlte]

                            Hi Tim, huge thanks for the door size bug fix. I copied the two files you posed into Plugins/Housebuilder file - fixes the door problem perfectly but has also converted my metric version of Housebuilder into imperial. Any advice on how to get it back to metric?

                            Thanks

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

                              @tim said:

                              Here it is anyway - modified Housebuilder.rb with the door sizing fixed to compensate for the rough opening offset

                              I downloaded HouseBuilder.rb. Should HouseBuilder_extension.rb be removed from the plugins folder?

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

                              Advertisement