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

    [Plugin] FloorGenerator ( Updated 6-Apr-2017)

    Scheduled Pinned Locked Moved Plugins
    331 Posts 109 Posters 341.4k Views 109 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.
    • sdmitchS Offline
      sdmitch
      last edited by

      Floor Generator has been moved to the Plugin Store.

      Nothing is worthless, it can always be used as a bad example.

      http://sdmitch.blogspot.com/

      1 Reply Last reply Reply Quote 0
      • guanjinG Offline
        guanjin
        last edited by

        @sdmitch said:

        Floor Generator has been moved to the Plugin Store.

        pm.gif

        The plug-in is perfect, but unfortunately does not support Chinese language πŸ˜’

        I come from China, is to learn

        1 Reply Last reply Reply Quote 0
        • OxerO Offline
          Oxer
          last edited by

          ~~There is a conflict with offset.rb required for Protude.rb, the next Patterns don't work:

          • Irregular Polygons
          • HopScotch3
          • I_Block
            The rest of patterns work fine.~~

          Another question, is it possible give support to translate the plugin?

          EDIT: I found a version of offset.rb that it isn't conflict with Floor Generator.

          "The result is the end what is important is the process" by Oxer
          [http://www.oxervision.blogspot.com/(http://www.oxervision.blogspot.com/)]

          1 Reply Last reply Reply Quote 0
          • sdmitchS Offline
            sdmitch
            last edited by

            @oxer said:

            ~~There is a conflict with offset.rb required for Protude.rb, the next Patterns don't work:

            • Irregular Polygons
            • HopScotch3
            • I_Block
              The rest of patterns work fine.~~

            Another question, is it possible give support to translate the plugin?

            EDIT: I found a version of offset.rb that it isn't conflict with Floor Generator.

            I can't see how Floor Generator could ever have a conflict with offset.rb since I use a method of my own creation to do the offsets and every pattern uses the same offset method.

            I have no ability or plans to do any translations of the plugin.

            Nothing is worthless, it can always be used as a bad example.

            http://sdmitch.blogspot.com/

            1 Reply Last reply Reply Quote 0
            • OxerO Offline
              Oxer
              last edited by

              Thanks for the reply.

              "The result is the end what is important is the process" by Oxer
              [http://www.oxervision.blogspot.com/(http://www.oxervision.blogspot.com/)]

              1 Reply Last reply Reply Quote 0
              • tt_suT Offline
                tt_su
                last edited by

                I think offset.rb modifies core classes which breaks plugins.

                1 Reply Last reply Reply Quote 0
                • O Offline
                  Openspaces
                  last edited by

                  Thank you so very much, very useful Plugin. πŸ‘

                  1 Reply Last reply Reply Quote 0
                  • sdmitchS Offline
                    sdmitch
                    last edited by

                    @tt_su said:

                    I think offset.rb modifies core classes which breaks plugins.

                    Shortly after finding and using offset.rb, it was pointed out that that could be a potential problem so I did away with the class and just used it as a method. The first versions of Floor Generator used this offset method until I tried to add the Herringbone pattern. It failed apparently because the way the faces are arranged it cause multiple edges to be reversed in the face and it couldn't handle that. So I had to create my own version.

                    Nothing is worthless, it can always be used as a bad example.

                    http://sdmitch.blogspot.com/

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

                      hi,

                      i've used your script for several times, it's nice and run well. But suddenly, the script didn't load. When I check ruby console, it show some error message like this :

                      @unknownuser said:

                      Error: #<NoMethodError: undefined method to_l' for nil:NilClass> C:/Users/Design/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/SDM_FloorGenerator_WD.rb:89:in dialog'
                      C:/Users/Design/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/SDM_FloorGenerator_WD.rb:63:in initialize' C:/Users/Design/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/SDM_FloorGenerator_WD.rb:33:in new'
                      C:/Users/Design/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/SDM_FloorGenerator_WD.rb:33:in block in <top (required)>' -e:1:in call'

                      What should I do to make the script run again?

                      Thank's before

                      1 Reply Last reply Reply Quote 0
                      • sdmitchS Offline
                        sdmitch
                        last edited by

                        @azumayugo said:

                        hi,

                        i've used your script for several times, it's nice and run well. But suddenly, the script didn't load. When I check ruby console, it show some error message like this :

                        @unknownuser said:

                        Error: #<NoMethodError: undefined method to_l' for nil:NilClass> C:/Users/Design/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/SDM_FloorGenerator_WD.rb:89:in dialog'
                        C:/Users/Design/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/SDM_FloorGenerator_WD.rb:63:in initialize' C:/Users/Design/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/SDM_FloorGenerator_WD.rb:33:in new'
                        C:/Users/Design/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/SDM_FloorGenerator_WD.rb:33:in block in <top (required)>' -e:1:in call'

                        What should I do to make the script run again?

                        Thank's before

                        It is probably a problem related to the saved defaults. If the plugin runs at all, choose the reset option at the bottom of the pattern list to reset the defaults.

                        If that isn't possible, paste the following into the Ruby Console and press Enter.

                        ["Brick","Tile","Wood","Tweed","Hbone","BsktWv","HpScth1","HpScth2",'HpScth3',"HpScth4","IrPoly","Hexgon","Octgon","Wedge","I_Block"].each{|o| Sketchup.write_default("FloorGenerator",o,nil)};
                        

                        Nothing is worthless, it can always be used as a bad example.

                        http://sdmitch.blogspot.com/

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

                          @sdmitch said:

                          @azumayugo said:

                          hi,

                          i've used your script for several times, it's nice and run well. But suddenly, the script didn't load. When I check ruby console, it show some error message like this :

                          @unknownuser said:

                          Error: #<NoMethodError: undefined method to_l' for nil:NilClass> C:/Users/Design/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/SDM_FloorGenerator_WD.rb:89:in dialog'
                          C:/Users/Design/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/SDM_FloorGenerator_WD.rb:63:in initialize' C:/Users/Design/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/SDM_FloorGenerator_WD.rb:33:in new'
                          C:/Users/Design/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/SDM_FloorGenerator_WD.rb:33:in block in <top (required)>' -e:1:in call'

                          What should I do to make the script run again?

                          Thank's before

                          It is probably a problem related to the saved defaults. If the plugin runs at all, choose the reset option at the bottom of the pattern list to reset the defaults.

                          If that isn't possible, paste the following into the Ruby Console and press Enter.

                          ["Brick","Tile","Wood","Tweed","Hbone","BsktWv","HpScth1","HpScth2",'HpScth3',"HpScth4","IrPoly","Hexgon","Octgon","Wedge","I_Block"].each{|o| Sketchup.write_default("FloorGenerator",o,nil)};
                          

                          Thank's sdmitch. It work again πŸ‘

                          1 Reply Last reply Reply Quote 0
                          • U Offline
                            unsuns
                            last edited by

                            Hello Everyone !

                            First of all, thank you for the great job you did to bring us that tool.

                            However, I have an issue : I wanted to be able to run it through a toolbar button (which I successfully did, but when I close the FG window the button is still activated and if I try to run it again the FG window doesnt show up anymore (even if I use other tools after that).

                            Could you please help me to fix it ? πŸ˜•


                            My issue

                            1 Reply Last reply Reply Quote 0
                            • sdmitchS Offline
                              sdmitch
                              last edited by

                              @unsuns said:

                              Hello Everyone !

                              First of all, thank you for the great job you did to bring us that tool.

                              However, I have an issue : I wanted to be able to run it through a toolbar button (which I successfully did, but when I close the FG window the button is still activated and if I try to run it again the FG window doesnt show up anymore (even if I use other tools after that).

                              Could you please help me to fix it ? πŸ˜•

                              Just don't "X" out of the WebDialog window, instead Right click in space or select any other tool. This will close the WebDialog window an unselect the Toolbar Icon.

                              Nothing is worthless, it can always be used as a bad example.

                              http://sdmitch.blogspot.com/

                              1 Reply Last reply Reply Quote 0
                              • jolranJ Offline
                                jolran
                                last edited by

                                @unknownuser said:

                                Just don't "X" out of the WebDialog window, instead Right click in space or select any other tool. This will close the WebDialog window an unselect the Toolbar Icon.

                                Sam. I think you could try trigger some actions during the closing of the dialog with "X", using @yourdialog.set_on_close { #set closing action here }. If you are not already using it, that is.
                                As usual concerning webdialogs, I don't know how reliable that method is..

                                1 Reply Last reply Reply Quote 0
                                • U Offline
                                  unsuns
                                  last edited by

                                  I tried what you said jolran but I couldn't figure it out. How should I do it ?
                                  Here is the code:

                                  ...
                                  

                                  [mod=:3izmkj1d]Please don't post entire blocks of code from other authors - it's bad manners...
                                  Extracts are fine...[/mod:3izmkj1d]

                                  1 Reply Last reply Reply Quote 0
                                  • sdmitchS Offline
                                    sdmitch
                                    last edited by

                                    @jolran said:

                                    @unknownuser said:

                                    Just don't "X" out of the WebDialog window, instead Right click in space or select any other tool. This will close the WebDialog window an unselect the Toolbar Icon.

                                    Sam. I think you could try trigger some actions during the closing of the dialog with "X", using @yourdialog.set_on_close { #set closing action here }. If you are not already using it, that is.
                                    As usual concerning webdialogs, I don't know how reliable that method is..

                                    I wasn't. Another one of those things that is there but not a necessity so I just ignored it. Thanks for the suggestion.

                                    Nothing is worthless, it can always be used as a bad example.

                                    http://sdmitch.blogspot.com/

                                    1 Reply Last reply Reply Quote 0
                                    • jolranJ Offline
                                      jolran
                                      last edited by

                                      @unknownuser said:

                                      I tried what you said jolran but I couldn't figure it out. How should I do it ?

                                      unsuns, I meant this to be tried by Sam at developer-level. I havent dug in his script, so this suggestion was a shot in the dark.

                                      @unknownuser said:

                                      I wasn't. Another one of those things that is there but not a necessity so I just ignored it. Thanks for the suggestion.

                                      Hope it helps.
                                      /Joel

                                      1 Reply Last reply Reply Quote 0
                                      • U Offline
                                        unsuns
                                        last edited by

                                        Can't I do it myself ? To help improve that script

                                        1 Reply Last reply Reply Quote 0
                                        • sdmitchS Offline
                                          sdmitch
                                          last edited by

                                          Posted new version.

                                          Unsuns, I would appreciate it if you would let me take care of my plugins. Thank you.

                                          Nothing is worthless, it can always be used as a bad example.

                                          http://sdmitch.blogspot.com/

                                          1 Reply Last reply Reply Quote 0
                                          • U Offline
                                            unsuns
                                            last edited by

                                            That's alright ! Thank you !

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

                                            Advertisement