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

    [Plugin] Stair Maker

    Scheduled Pinned Locked Moved Plugins
    110 Posts 37 Posters 111.5k Views 37 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.
    • J Offline
      Jim
      last edited by

      @sdmitch said:

      1. As I like to say, "Anything is possible"

      Sam, Just wanted to say have a look at model.place_component before you re-invent the "Anything." It may be what you need.

      Always use the 2nd argument to model.start_operation - it make a huge difference especially when people have the Outliner open during a script. Actually, the 2nd argument was added in version 7, so if you want to support version 6 and earlier, you will need to check versions and pass the corect number of arguments.

      And change require 'Sketchup' to require 'sketchup'

      Other than that, thanks for the recent plugins and keep up the good work.

      Hi

      1 Reply Last reply Reply Quote 0
      • utilerU Offline
        utiler
        last edited by

        @sdmitch said:

        Andrew,

        1. No, not without editing the file.
        2. Ok.
        3. Reversed? How so?
        4. Yes, for some reason an enternal face doesn't get grouped.
        5. Currently by the riser. How should it be determined.
        6. As I like to say, "Anything is possible"

        Thanks Sam, reply to you comments below:

        1. no problem
        2. πŸ‘
        3. the faces are reversed; you can see by the front face ' back face color....
        4. πŸ‘
        5. actually, leave it like this. It's pretty close to what an in-situ stair would look like...
        6. πŸ‘ πŸ‘

        Another thing I have always wanted with a stair builder is the ability to input the total flight rise then total number of risers which determines your individual riser. So many times risers are decimal [fraction in your case πŸ˜‰ ] and it's a pain to have to work it all out.
        A simple way around it would be to nominate your total stair height and number of risers have the maths done for you! Many times setting stair configurations is a 'trial by process' anyway so another reason to work back from the total height....

        Cheers,

        purpose/expression/purpose/....

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

          Andrew, I hope this will complete your wish list.

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

          http://sdmitch.blogspot.com/

          1 Reply Last reply Reply Quote 0
          • utilerU Offline
            utiler
            last edited by

            @sdmitch said:

            Andrew, I hope this will complete your wish list.

            It would be nice to see happen but if you can't no problem. I really appreciate you taking the time to extend your plugin, Sam!

            purpose/expression/purpose/....

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

              Hello Sam,
              First of all thanks for a great work,
              I wanted to ask if you can put in the spiral staircase to the number of steps.
              thank you very much.

              1 Reply Last reply Reply Quote 0
              • kenK Offline
                ken
                last edited by

                Just wondering, would it be possible to include ladder maker in the stairs plugin? Two rails with step between, and with a vertical orientation.

                Thanks in advance

                Ken

                Fight like your the third monkey on Noah's Ark gangway.

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

                  dizian, yes.

                  Ken, what shape rails?

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

                  http://sdmitch.blogspot.com/

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

                    Its a good time to celebrate more people writing ruby code. Welcome!

                    Now for some constructive criticism regarding stair design.

                    Spiral stair:
                    As the primary means of egress from any floor to an exit
                    your design would probably not be legal code wise, and if it is let me know
                    I will email the jurisdiction your in to explain why it should not.
                    Most people would not be able to negotiate a spiral stair where the stair
                    width approaches 0" inches in width around a central column.

                    In the event of fire, most elevators are programmed to go to the main floor, to be used by rescue and fire personnel, the exiting stairs are for the people that require vacating the building. Just like those that made it via stairs to exit in the 9/11 World Trade Centers Towers. Hence stairs are very important aspects of a buildings design.

                    Insitu:
                    Casting concrete to a narrow wedge shaped point as is the case is with your stair from the land to the upper floor is bound to be a concrete casting failure.

                    In a high rise building stairs and a stair wells are still required as the primary means of egress in the event of fire. A prudent contractor may well cast all the landing and stair well walls in place. followed by lifting in place by crane precast stair lengths that simply drop in place from landing to landing starting at the first floor to finishing at the top floor.

                    Handrails:
                    Heights of handrails at landings are NOT the same as on stairs, by code.
                    Handrails must also be continuous, not interrupted.

                    Stair math problem: divide total floor height/2 for where landing is supposed to occur.
                    Have a look at http://rhin.crai.archi.fr/rld/plugin_details.php?id=406
                    a script I wrote under another alias 7 years ago.

                    good luck, keep going!


                    stair.jpg

                    [my plugins](http://thingsvirtual.blogspot.ca/)
                    tomot

                    1 Reply Last reply Reply Quote 0
                    • kenK Offline
                      ken
                      last edited by

                      @sdmitch said:

                      dizian, yes.

                      Ken, what shape rails?

                      I would make the rails line running up the side connecting each step, then it would be easy to make the rail any shape you wanted by using other plugins.

                      Thank you for your interest.

                      Ken

                      Fight like your the third monkey on Noah's Ark gangway.

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

                        tomat, I was never under any illusion that my stair maker was for anything more than creating a illustration and never was intended to be structually correct and/or code complient. I have never made such a claim and have no intention of ever doing so.

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

                        http://sdmitch.blogspot.com/

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

                          @sdmitch said:

                          tomat, I was never under any illusion that my stair maker was for anything more than creating a illustration and never was intended to be structually correct and/or code complient. I have never made such a claim and have no intention of ever doing so.

                          Please don't misunderstand me! I have learned a lot from your code, My intent was only to encourage you to improve the content of your stair design, that's all, that's what I meant when I used the words constructive criticism

                          [my plugins](http://thingsvirtual.blogspot.ca/)
                          tomot

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

                            the one thing about designing/drawing stairs is the there always is one less tread than risers, so when you ask for number of steps its not clear if your asking for the number of risers or treads. After trying each I'm assuming your asking for the number of treads, because the top tread should be one riser below the floor level. And the riser height is always determined from dividing the floor to floor height by the number of risers, which by code is usually around 7" height. But at the same time both stair plug ins are great at a graphical stair layouts!

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

                              tomot,
                              your totally wrong in your assessment. This is a plugin for a quick staircase. It's free . If he was to do what you asked it would be not free. Saying something is constructive criticism does not cover your argument. Its responses like yours that make others who donate their time and effort for free plugins say " why bother"

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

                                SD, I just tried that latest version, I can make straight stairs, open and in-situ, and that is it, no ushape. If I select u-shape I get straight.
                                Am I missing something?

                                SU make 2017, /Twilight Render Hobby
                                Windows 10,64 bit,16GB ram, quad core Athlon 3.6 gHz proc. Anything else you want to know, ask me.

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

                                  @tspco said:

                                  SD, I just tried that latest version, I can make straight stairs, open and in-situ, and that is it, no ushape. If I select u-shape I get straight.
                                  Am I missing something?

                                  U-Shape refers to two sections of straight stairs connected by a landing. It does not mean the the stairs themselves are curved. I downloaded a copy of the posted plugin and it works just as it was designed to do.


                                  Stairs.jpg

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

                                  http://sdmitch.blogspot.com/

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

                                    Well heck, I guess I am not doing something right. The spiral,and normal stair works OK, but. I can't get the u-shape to work.

                                    SU make 2017, /Twilight Render Hobby
                                    Windows 10,64 bit,16GB ram, quad core Athlon 3.6 gHz proc. Anything else you want to know, ask me.

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

                                      tspco, open the Ruby Console window then run the plugin. Maybe something is causing an error and thats why it appears to be doing nothing.

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

                                      http://sdmitch.blogspot.com/

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

                                        I will try the ruby console. but in the meantime here is what I get


                                        sstairmakerpan.jpg

                                        SU make 2017, /Twilight Render Hobby
                                        Windows 10,64 bit,16GB ram, quad core Athlon 3.6 gHz proc. Anything else you want to know, ask me.

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

                                          Houston we have an error.
                                          Error: #<NoMethodError: undefined method entities' for nil:NilClass> C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/Stair Maker3 (1).rb:348:in ushape_stair'
                                          C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/Stair Maker3 (1).rb:147:in `onLButtonDown'

                                          SU make 2017, /Twilight Render Hobby
                                          Windows 10,64 bit,16GB ram, quad core Athlon 3.6 gHz proc. Anything else you want to know, ask me.

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

                                            tspco, after the first half of the u-shape is created, it makes a copy to use for the second half but for some reason that isn't happening. I did make a change in that code on the suggestion of TIG and that version is on My Plugins blog, http://sdmitch.blogspot.com. Try that version and see if it works for you.

                                            Both versions work on my Vista system.

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

                                            http://sdmitch.blogspot.com/

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

                                            Advertisement