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.
    • U Offline
      unsuns
      last edited by

      The X-ing problem is back again !

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

        @unsuns said:

        The X-ing problem is back again !

        Yes I know and it will be until I can figure out why changing the pattern selection causes the window to close.

        Why do you insist on X'ing out of the window? If it is in your way then minimize it.

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

        http://sdmitch.blogspot.com/

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

          @jolran said:

          Sam I'm looking at your code here. Cant remember which version this is. So you may have changed this behavior.
          But in a callback you have a dialog close ?

          You have a select with an event onchange:

          <select onChange='patternchanged(value)'>
          

          The function then sends the callback

          function patternchanged(value){
          >    window.location='skp;PatternChanged@'+value;
          > }
          

          In the callback block you have a dlg.close. So everytime select change dialog closes..

          @@dlg.add_action_callback("PatternChanged") {|d,p|
          > 	@@opt=p; puts p
          > 	if @@opt=="Reset" then 
          > 						["Brick","Tile","Wood","Tweed","Hbone","BsktWv","HpScth","Hexgon","Octgon","Two2One" ,"IrPoly"].each{|o| 
          >   Sketchup.write_default("FloorGenerator",o,nil)};@@opt="Tile";
          >   end
          >   @@dlg.close; @@dlg=nil; self.dialog
          > }
          

          I also see you have the command self.dialog trying to reopend the dialog ?
          But it is set to nil before. Don't know if that messes things up..
          Maybe a timing issue.

          Edit: sorry meant to post this in the devlopper forum where you posted specific question. Copied and pasted wrong...

          Yes I finally figured that all out. I just had to add a variable that I set to true if the PatternChanged and the window was closed and recreated. I deleted the post to the Developer forum as soon as I figured it out so as not to embarrass my self further.

          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

            Sam I'm looking at your code here. Cant remember which version this is. So you may have changed this behavior.
            But in a callback you have a dialog close ?

            You have a select with an event onchange:

            <select onChange='patternchanged(value)'>
            

            The function then sends the callback

            function patternchanged(value){
               window.location='skp;PatternChanged@'+value;
            }
            

            In the callback block you have a dlg.close. So everytime select change dialog closes..

            @@dlg.add_action_callback("PatternChanged") {|d,p|
            	@@opt=p; puts p
            	if @@opt=="Reset" then 
            						["Brick","Tile","Wood","Tweed","Hbone","BsktWv","HpScth","Hexgon","Octgon","Two2One" ,"IrPoly"].each{|o| 
              Sketchup.write_default("FloorGenerator",o,nil)};@@opt="Tile";
              end
              @@dlg.close; @@dlg=nil; self.dialog
            }
            

            I also see you have the command self.dialog trying to reopend the dialog ?
            But it is set to nil before. Don't know if that messes things up..
            Maybe a timing issue ?

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

              Ha ha ! Ah ok! 👍

              I thought I was getting high or something. One minute I thought I read about it in the developper section, then it was gone. So I removed my last sentence as well, just in case I was wrong 😆 😆

              1 Reply Last reply Reply Quote 0
              • S Offline
                stagelight
                last edited by

                Thank you for another great plugin !!
                This is what I've been working on lately, with your script.


                Bridge.jpg

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

                  @stagelight said:

                  Thank you for another great plugin !!
                  This is what I've been working on lately, with your script.

                  It's a rather funny floor but a very nice bridge.

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

                  http://sdmitch.blogspot.com/

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

                    Thank you guy for that great plugin. I'm a brazilian and translated it for portuguese. Do you think that it's good?

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

                      @djrique said:

                      Thank you guy for that great plugin. I'm a brazilian and translated it for portuguese. Do you think that it's good?

                      Good by me.

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

                      http://sdmitch.blogspot.com/

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

                        Upload .Rb file PT-BR Language: https://drive.google.com/file/d/0BwqiSt9yjVQDVHZCM1JCOS1wb0U/edit?usp=sharing

                        i don´t know to create .rbz file... 😳

                        THX.

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

                          @djrique said:

                          Upload .Rb file PT-BR Language: https://drive.google.com/file/d/0BwqiSt9yjVQDVHZCM1JCOS1wb0U/edit?usp=sharing

                          i don´t know to create .rbz file... 😳

                          THX.

                          An .rbz file is just a .zip file with the extension changed to .rbz

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

                          http://sdmitch.blogspot.com/

                          1 Reply Last reply Reply Quote 0
                          • Mistro11M Offline
                            Mistro11
                            last edited by

                            ThankYou_sdmitch.jpg

                            Hope this render reflects my gratitude. 👍

                            i7-4930k @3.4/3.7GHz, 32Gb RAM, NVidia GTX 980Ti 6Gb, Windows 7 Pro 64bit
                            Structural Integrity is Not Just Physical...It's in the Design and Purpose

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

                              It's beautiful. Thanks for making me look so good.

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

                              http://sdmitch.blogspot.com/

                              1 Reply Last reply Reply Quote 0
                              • S Offline
                                sidewalk
                                last edited by

                                Excellent plugin! A tool like this has been on my wishlist for years.

                                One suggestion: Is it possible to add an exterior clapboard/lap siding setting? The parameters could be very similar to the wood setting.

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

                                  great plugin! super work and thanks for sharing it!
                                  keep up the wonderful work!

                                  1 Reply Last reply Reply Quote 0
                                  • PixeroP Offline
                                    Pixero
                                    last edited by

                                    Suddenly I get the same error as mentioned above.
                                    When I change pattern the window closes.
                                    I've re installed the latest version and tried it on two PCs.
                                    Weird. 😕

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

                                      @pixero said:

                                      Suddenly I get the same error as mentioned above.
                                      When I change pattern the window closes.
                                      I've re installed the latest version and tried it on two PCs.
                                      Weird. 😕

                                      That makes no sense at all. Have you installed any new plugins lately? Maybe there is a conflict. Does the Ruby Console show any errors?

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

                                      http://sdmitch.blogspot.com/

                                      1 Reply Last reply Reply Quote 0
                                      • PixeroP Offline
                                        Pixero
                                        last edited by

                                        Here is what the console reports:

                                        Error; #<NoMethodError; undefined method `to_l' for nil;NilClass>
                                        C;/Users/31jsa/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/SDM_FloorGenerator_WD.rb;93;in `dialog'
                                        C;/Users/31jsa/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/SDM_FloorGenerator_WD.rb;67;in `initialize'
                                        C;/Users/31jsa/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/SDM_FloorGenerator_WD.rb;34;in `new'
                                        C;/Users/31jsa/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/SDM_FloorGenerator_WD.rb;34;in `block in <top (required)>'
                                        -e;1;in `call'
                                        
                                        

                                        As a side note, would it be possible to have a setting for bevel size?
                                        Like if I want half or even a quarter of the size of the bevel.
                                        And some min and max distance of the random imperfections?
                                        I think both are a litte too big for most cases.

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

                                          @pixero said:

                                          Here is what the console reports:

                                          Error; #<NoMethodError; undefined method `to_l' for nil;NilClass>
                                          > C;/Users/31jsa/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/SDM_FloorGenerator_WD.rb;93;in `dialog'
                                          > C;/Users/31jsa/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/SDM_FloorGenerator_WD.rb;67;in `initialize'
                                          > C;/Users/31jsa/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/SDM_FloorGenerator_WD.rb;34;in `new'
                                          > C;/Users/31jsa/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/SDM_FloorGenerator_WD.rb;34;in `block in <top (required)>'
                                          > -e;1;in `call'
                                          > 
                                          

                                          As a side note, would it be possible to have a setting for bevel size?
                                          Like if I want half or even a quarter of the size of the bevel.
                                          And some min and max distance of the random imperfections?
                                          I think both are a litte too big for most cases.

                                          The error is occurring when the defaults are being read so use the "Reset" option first and hopefully that will clear up the problem.

                                          I will consider your request as time permits.

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

                                          http://sdmitch.blogspot.com/

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

                                            I think there is a bug in the newest verision. On a rectangle it was complaining about non planar faces, even though this was off a box with sketchup box primitive.

                                            Reverting back a version, I was then able to generate a wooden pattern on the same object.

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 13
                                            • 14
                                            • 15
                                            • 16
                                            • 17
                                            • 17 / 17
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement