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

      I have posted the FINAL version of FloorGenerator. Sorry but no more changes and/or additions. Some of the major changes are

      1. The Current Material option now uses the Material on the front or back of the face picked. If the picked face doesn't have a material applied then the current material is used as before.

      2. The Rand_Tex Material option can specify a folder or the model as the source of the materials to be applied randomly. A Material Picker window will list the names of all the Materials available in the selected source. This a multiple selection window allowing you to 'Select' one, all or any combination using the Shift and Ctrl keys. A new 'Source' button, which appears when the Rand_Tex option is selected, allows you to change the source of the random materials at any time.

      3. The Irregular Polygon option now uses MattC's VoronoiXY and delauney3 plugins to create them. A density value ranging from 0.1 to 1.0 determines how many random points/sqft are generated and thus the relative size of the polygons created. Don't expect this to work on small or highly irregular shapes with holes.

      4. A new option, 'Create Behind Face', moves the created pattern so that the 'top' of the pattern is on the original face picked. Use this option if the picked face represents the finished floor or wall.

      5. A new option, 'Create Individual Groups' makes each Brick, Tile, etc. a group inside the Pattern group.

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

      http://sdmitch.blogspot.com/

      1 Reply Last reply Reply Quote 0
      • deaneauD Offline
        deaneau
        last edited by

        @ pilou you are a creative funny guy πŸ˜„

        MADE, BORN AND LIVING IN BERLIN
        Big Thank You to all Programmers
        Some German words are so long that they have a perspective. M.Twain

        1 Reply Last reply Reply Quote 0
        • J Offline
          j_chris
          last edited by

          When I have loaded the plugin, I do not seem to have the most up to date version which I downloaded from the site, It does not have the settings shown on your jpegs?

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

            @unknownuser said:

            When I have loaded the plugin, I do not seem to have the most up to date version which I downloaded from the site, It does not have the settings shown on your jpegs?

            The settings/options displayed depend on the Pattern choice. This plugin was last updated on 30-Jun-2015

            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
              skavan
              last edited by

              what.a.great.plugin!
              thank you.

              I have a quick question for either the patient author or some of you other experts --
              I want the grid origin to be at a specific point on the face (which is neither the center nor the corner).
              I note in the ruby code, there is this line:
              ctr=face.bounds.center;

              which looks like the line where it picks the center of the face as the origin...any ideas on how to set this instead, to the point where I clicked on the face?

              would make this plugin purffect..

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

                @skavan said:

                what.a.great.plugin!
                thank you.

                I have a quick question for either the patient author or some of you other experts --
                I want the grid origin to be at a specific point on the face (which is neither the center nor the corner).
                I note in the ruby code, there is this line:
                ctr=face.bounds.center;

                which looks like the line where it picks the center of the face as the origin...any ideas on how to set this instead, to the point where I clicked on the face?

                would make this plugin purffect..

                At the moment, the plugin has two options for the grid origin. Corner, which is the closest corner to the pick point identifying the face, and Center. The "center" point is used to define the initial location of the grid and the grid is then shifted if Corner is the selected origin.

                It would seem to be relatively easy to add a third option of "Pick Pt.". I will take a look.

                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
                  skavan
                  last edited by

                  Oh gosh - thank you so much that would be awesome!

                  If it helps, I have attached a simple SU (2013 for max compatibility) file that shows the concept.
                  The polygon on the left is a simple version of a target shape with the desired tile centerpoint shown as the intersection of two guidelines.
                  The shape on the right is my current workaround -- which is to force the shape to be equidistant around this target point, and then to go back and trim the excess. This is not too much of a pain on this simple example, but becomes very time consuming when one of the side corridor arms, bends at say 45 degrees! Hopefully it makes more sense to look at than to explain in text!

                  Oh - as a tiny cosmetic point, if I choose a tight gap width of say 3/16" (vs. 1/4") it works fine, and is seemingly saved to defaults. When I next open the plugin, it shows as 1/4" not 3/16". I'm pretty sure its storing the right number, but the display is formatted to a single digit fraction. Would be great to expand the formatting to two digits.

                  Thanks again for a truely time saving plugin.

                  s.


                  FloorGen test.skp

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

                    and one more teeny thing for utter coolness is to support an alternating material...for a checkerboard style.
                    I can think of two ways of (easily??) doing this:

                    1. If different materials are applied to front and back of face and Current Texture is chosen, alternate material, starting with front then back -OR-
                    2. If a "special seed value" like -1 is chosen, alternate between the chosen materials in selection via the rand_tex option.

                    I hope you can tell that I just LOVE your plugin and am using it to figure out how to tile a 15,000 sq.ft house!

                    I promise to stop now!

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

                      @skavan said:

                      and one more teeny thing for utter coolness is to support an alternating material...for a checkerboard style.
                      I can think of two ways of (easily??) doing this:

                      1. If different materials are applied to front and back of face and Current Texture is chosen, alternate material, starting with front then back -OR-
                      2. If a "special seed value" like -1 is chosen, alternate between the chosen materials in selection via the rand_tex option.

                      I hope you can tell that I just LOVE your plugin and am using it to figure out how to tile a 15,000 sq.ft house!

                      I promise to stop now!

                      Sorry but the way this plugin creates the pattern, by intersecting a grid with the selected face, it is impossible to predict the order of the created faces.

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

                      http://sdmitch.blogspot.com/

                      1 Reply Last reply Reply Quote 0
                      • N Offline
                        Nibelungs
                        last edited by

                        It does not work with Sketchup 2015?

                        The plugin is installed, I see it in the toolbar ... but it does not open when I pressed. 😞

                        1 Reply Last reply Reply Quote 0
                        • TIGT Offline
                          TIG Moderator
                          last edited by

                          @Sabastien

                          Please open the Ruby Console.
                          Now try to use the tool.
                          What happens?
                          Any error messages?
                          Are you selecting a face before running the tool?
                          More info please...

                          TIG

                          1 Reply Last reply Reply Quote 0
                          • N Offline
                            Nibelungs
                            last edited by

                            @tig said:

                            @Sabastien

                            Please open the Ruby Console.
                            Now try to use the tool.
                            What happens?
                            Any error messages?
                            Are you selecting a face before running the tool?
                            More info please...

                            Hi, sorry for my late.

                            The error in the Ruby Console is " <SystemStackError: stack level too deep> C:/Users/*/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/SDM_FloorGenerator_WD.rb:95 "

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

                              @nibelungs said:

                              Hi, sorry for my late.

                              The error in the Ruby Console is " <SystemStackError: stack level too deep> C:/Users/*/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/SDM_FloorGenerator_WD.rb:95 "

                              Are you using metric or inches? Do you use "." or "," as the decimal separator?

                              My guess is that the plugin is being caught in a perpetual loop of trying to read/write the current defaults.

                              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
                                autumnwind
                                last edited by

                                Hi to everybody, I can't make it work on my project. It creates the grid but no bricks, or sometimes accidentally it creates just 3 or 4 bricks. the error seems to happen most when I use the offset (and I need it actually). I have no error in my geometry apparently, just it's not that regularly in its border so it implies many bricks to be cut.

                                any suggestion or possible error?

                                thanks in advance

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

                                  @autumnwind said:

                                  Hi to everybody, I can't make it work on my project. It creates the grid but no bricks, or sometimes accidentally it creates just 3 or 4 bricks. the error seems to happen most when I use the offset (and I need it actually). I have no error in my geometry apparently, just it's not that regularly in its border so it implies many bricks to be cut.

                                  any suggestion or possible error?

                                  thanks in advance

                                  If you would care to post a model, version<=2014, containing the face and a list or screenshot of the parameters you are attempting to use, I will try to determine and fix the problem.

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

                                  http://sdmitch.blogspot.com/

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

                                    Guys, I have a problem. I can't seem to make tiles 200*200mm size, always getting the same message:
                                    "TILE DIMENSIONS MAY BE TOO SMALL. 2008 TILE NEEDED".
                                    What am I doing wrong?

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

                                      @gnome_mo said:

                                      Guys, I have a problem. I can't seem to make tiles 200*200mm size, always getting the same message:
                                      "TILE DIMENSIONS MAY BE TOO SMALL. 2008 TILE NEEDED".
                                      What am I doing wrong?

                                      You aren't doing anything wrong. It just letting you know that the size choosen will result in a large number of tiles. Click "Yes" in the messagebox to proceed.

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

                                      http://sdmitch.blogspot.com/

                                      1 Reply Last reply Reply Quote 0
                                      • deaneauD Offline
                                        deaneau
                                        last edited by

                                        Here some inspirations for grids. the download is a PDF format. This can instantly imported in illustrator (AI) and than exported as dxf, eps, svg.

                                        is only a tip not a request πŸ˜‰

                                        greetings from berlin

                                        Dean

                                        Link: https://incompetech.com/graphpaper/

                                        MADE, BORN AND LIVING IN BERLIN
                                        Big Thank You to all Programmers
                                        Some German words are so long that they have a perspective. M.Twain

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

                                          @gnome_mo said:

                                          Mitch, I can't thank you enough.
                                          I feel kinda stupid to ask this, but I can't figure it out:
                                          I would like to make tiles or wood like this picture. I've made it "by hand" but I'm sure you have settings to make it like this (next row is half length moved). Is it possible?

                                          https://s9.postimg.org/yplue0417/Capture.jpg

                                          Use the 'Brick' pattern or 'Tile' pattern with 50% offset.

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

                                          http://sdmitch.blogspot.com/

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

                                            Mitch, I can't thank you enough.
                                            πŸ‘ πŸ‘ πŸ‘

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 8
                                            • 9
                                            • 10
                                            • 11
                                            • 12
                                            • 16
                                            • 17
                                            • 10 / 17
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement