sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    Mac User? | Join the Rayscaper Beta for Mac Learn More

    [Plugin] Stair Maker

    Scheduled Pinned Locked Moved Plugins
    110 Posts 37 Posters 128.8k 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.
    • C
      cboy1980
      last edited by

      I still did not manage to get the plug in working...
      When changing my folder options (only read / full acces) sometimes I manage to get 1 stair... but after that it stops...

      ruby output:

      Error: #<ArgumentError: Cannot convert "9.84251968503937" to Length>
      C:/Program Files (x86)/SketchUp/SketchUp 2013/Plugins/Stair Maker.rb:267:in to_l' C:/Program Files (x86)/SketchUp/SketchUp 2013/Plugins/Stair Maker.rb:267:in get_defaults'
      C:/Program Files (x86)/SketchUp/SketchUp 2013/Plugins/Stair Maker.rb:77:in reset' C:/Program Files (x86)/SketchUp/SketchUp 2013/Plugins/Stair Maker.rb:68:in initialize'
      C:/Program Files (x86)/SketchUp/SketchUp 2013/Plugins/Stair Maker.rb:25:in new' C:/Program Files (x86)/SketchUp/SketchUp 2013/Plugins/Stair Maker.rb:25 C:/Program Files (x86)/SketchUp/SketchUp 2013/Plugins/Stair Maker.rb:267:in call'
      C:/Program Files (x86)/SketchUp/SketchUp 2013/Plugins/Stair Maker.rb:267
      Error: #<ArgumentError: Cannot convert "9.84251968503937" to Length>
      C:/Program Files (x86)/SketchUp/SketchUp 2013/Plugins/Stair Maker.rb:267:in to_l' C:/Program Files (x86)/SketchUp/SketchUp 2013/Plugins/Stair Maker.rb:267:in get_defaults'
      C:/Program Files (x86)/SketchUp/SketchUp 2013/Plugins/Stair Maker.rb:120:in reset' C:/Program Files (x86)/SketchUp/SketchUp 2013/Plugins/Stair Maker.rb:68:in initialize'
      C:/Program Files (x86)/SketchUp/SketchUp 2013/Plugins/Stair Maker.rb:25:in new' C:/Program Files (x86)/SketchUp/SketchUp 2013/Plugins/Stair Maker.rb:25 C:/Program Files (x86)/SketchUp/SketchUp 2013/Plugins/Stair Maker.rb:267:in call'
      C:/Program Files (x86)/SketchUp/SketchUp 2013/Plugins/Stair Maker.rb:267

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

        I get this when pasting into the Ruby Console [in Model-Units=mm, in v2013 & v2014]:
        "9.84251968503937".to_l 0.38750077500155
        So it seems to work as a Ruby method [mm --> "]...
        Although the level of 'accuracy is somewhat extreme πŸ˜’
        So something else is adrift with the script itself πŸ˜•

        TIG

        1 Reply Last reply
        Reply Quote 0
        • C
          cboy1980
          last edited by

          Hey TIG / sdmitch

          So when deleting the 'Stair Maker.txt' I'm allways able to make 1 stair.
          When trying to make another one...
          same problem as before:

          Error: #<ArgumentError: Cannot convert "3.76640419947507" to Length>
          C:/Program Files (x86)/SketchUp/SketchUp 2013/Plugins/Stair Maker.rb:267:in to_l' C:/Program Files (x86)/SketchUp/SketchUp 2013/Plugins/Stair Maker.rb:267:in get_defaults'
          C:/Program Files (x86)/SketchUp/SketchUp 2013/Plugins/Stair Maker.rb:77:in reset' C:/Program Files (x86)/SketchUp/SketchUp 2013/Plugins/Stair Maker.rb:68:in initialize'
          C:/Program Files (x86)/SketchUp/SketchUp 2013/Plugins/Stair Maker.rb:25:in `new'
          C:/Program Files (x86)/SketchUp/SketchUp 2013/Plugins/Stair Maker.rb:25

          same problem different values

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

            @cboy1980 said:

            Hey TIG / sdmitch

            So when deleting the 'Stair Maker.txt' I'm allways able to make 1 stair.
            When trying to make another one...
            same problem as before:

            Error: #<ArgumentError: Cannot convert "3.76640419947507" to Length>
            C:/Program Files (x86)/SketchUp/SketchUp 2013/Plugins/Stair Maker.rb:267:in to_l' C:/Program Files (x86)/SketchUp/SketchUp 2013/Plugins/Stair Maker.rb:267:in get_defaults'
            C:/Program Files (x86)/SketchUp/SketchUp 2013/Plugins/Stair Maker.rb:77:in reset' C:/Program Files (x86)/SketchUp/SketchUp 2013/Plugins/Stair Maker.rb:68:in initialize'
            C:/Program Files (x86)/SketchUp/SketchUp 2013/Plugins/Stair Maker.rb:25:in `new'
            C:/Program Files (x86)/SketchUp/SketchUp 2013/Plugins/Stair Maker.rb:25

            same problem different values

            I have made a few minor changes and have attached the plugin to a Personal Message. Please try it and let me know if there is any difference. Delete Stair Maker.txt file first.

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

            http://sdmitch.blogspot.com/

            1 Reply Last reply
            Reply Quote 0
            • G
              GudmHr
              last edited by

              My Sketchup(2014) is configured to use decimal comma instead of point (the European way). If I make L-stairs/Open, everything works fine repeatedly. But if I make L-stairs/in-situ, some numbers are written to Stair Maker.txt with decimal points and Sketchup doesn't like that, so Stair Maker stops working. If I change those decimal points to decimal commas in Stair Maker.txt and save it, Stair Maker works again. I think this is the issue here: some internally calculated results are written to Stair Maker.txt with points instead of commas.

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

                @gudmhr said:

                My Sketchup(2014) is configured to use decimal comma instead of point (the European way). If I make L-stairs/Open, everything works fine repeatedly. But if I make L-stairs/in-situ, some numbers are written to Stair Maker.txt with decimal points and Sketchup doesn't like that, so Stair Maker stops working. If I change those decimal points to decimal commas in Stair Maker.txt and save it, Stair Maker works again. I think this is the issue here: some internally calculated results are written to Stair Maker.txt with points instead of commas.

                I know this is a problem for some but I have no way of duplicating it myself. Usually working in whole mm's is at least a partial solution. I will attempt a fix and send it to you by personal message.

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

                http://sdmitch.blogspot.com/

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

                  GudmHr, Please check your personal messages for an attempted fix to the "," versus "." 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
                    GudmHr
                    last edited by

                    Thank you, sdmitch.

                    1 Reply Last reply
                    Reply Quote 0
                    • bprzybytkowskiB
                      bprzybytkowski
                      last edited by

                      Hi.

                      I too am having the same problem using Stair Maker as posted above.

                      The error I am getting in Ruby Console:
                      "
                      Error: #<ArgumentError: Cannot convert "12.3031496062992" to Length>
                      C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/Stair Maker.rb:267:in to_l' C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/Stair Maker.rb:267:in get_defaults'
                      C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/Stair Maker.rb:77:in reset' C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/Stair Maker.rb:68:in initialize'
                      C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/Stair Maker.rb:25:in new' C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/Stair Maker.rb:25 C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/Stair Maker.rb:267:in call'
                      C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/Stair Maker.rb:267
                      Error: #<ArgumentError: Cannot convert "12.3031496062992" to Length>
                      C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/Stair Maker.rb:267:in to_l' C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/Stair Maker.rb:267:in get_defaults'
                      C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/Stair Maker.rb:77:in reset' C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/Stair Maker.rb:68:in initialize'
                      C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/Stair Maker.rb:25:in new' C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/Stair Maker.rb:25 C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/Stair Maker.rb:267:in call'
                      C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/Stair Maker.rb:267
                      "

                      I'm working in EU comma separated units (e.g. 14,54m).

                      Is there any known solution to that problem?

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

                        @bprzybytkowski said:

                        Hi.

                        I too am having the same problem using Stair Maker as posted above.

                        The error I am getting in Ruby Console:
                        "
                        Error: #<ArgumentError: Cannot convert "12.3031496062992" to Length>
                        C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/Stair Maker.rb:267:in to_l' C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/Stair Maker.rb:267:in get_defaults'
                        C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/Stair Maker.rb:77:in reset' C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/Stair Maker.rb:68:in initialize'
                        C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/Stair Maker.rb:25:in new' C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/Stair Maker.rb:25 C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/Stair Maker.rb:267:in call'
                        C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/Stair Maker.rb:267
                        Error: #<ArgumentError: Cannot convert "12.3031496062992" to Length>
                        C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/Stair Maker.rb:267:in to_l' C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/Stair Maker.rb:267:in get_defaults'
                        C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/Stair Maker.rb:77:in reset' C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/Stair Maker.rb:68:in initialize'
                        C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/Stair Maker.rb:25:in new' C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/Stair Maker.rb:25 C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/Stair Maker.rb:267:in call'
                        C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/Stair Maker.rb:267
                        "

                        I'm working in EU comma separated units (e.g. 14,54m).

                        Is there any known solution to that problem?

                        I have sent you by PM the version that fixed GudmHr's problem. Hopefully it will do the same for you.

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

                        http://sdmitch.blogspot.com/

                        1 Reply Last reply
                        Reply Quote 0
                        • bprzybytkowskiB
                          bprzybytkowski
                          last edited by

                          The version you provided me by PM seems to be working without problem - thanks!

                          1 Reply Last reply
                          Reply Quote 0
                          • architexA
                            architex
                            last edited by

                            how can i learn to work on this plugin?

                            i see the parameter window under my sketchup, but the result are blank.

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

                              @unknownuser said:

                              how can i learn to work on this plugin?

                              i see the parameter window under my sketchup, but the result are blank.

                              Maybe this old tutorial will be of some help.

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

                              http://sdmitch.blogspot.com/

                              1 Reply Last reply
                              Reply Quote 0
                              • D
                                db11
                                last edited by

                                How tough is it to add an inside radius variable for the spiral stair generator to allow curved stair creation?

                                I'm trying to make a 180Β° curved staircase with and inside radius of about 3'.

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

                                  @db11 said:

                                  How tough is it to add an inside radius variable for the spiral stair generator to allow curved stair creation?

                                  I'm trying to make a 180Β° curved staircase with and inside radius of about 3'.

                                  Something like this?


                                  Spiral Stair.skp

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

                                  http://sdmitch.blogspot.com/

                                  1 Reply Last reply
                                  Reply Quote 0
                                  • D
                                    db11
                                    last edited by

                                    @sdmitch said:

                                    @db11 said:

                                    How tough is it to add an inside radius variable for the spiral stair generator to allow curved stair creation?

                                    I'm trying to make a 180Β° curved staircase with and inside radius of about 3'.

                                    Something like this?

                                    Exactly like that.

                                    It will be a single stringer (u-channel) open tread stair. I figured I could generate a follow-me path for the stringer chord pretty easily by simply joining the bottom centre points of the treads.

                                    1 Reply Last reply
                                    Reply Quote 0
                                    • atelierpaarA
                                      atelierpaar
                                      last edited by

                                      Hi there,
                                      after installing "StairMaker" the plugin shows up under "plugins"
                                      The Dialog box asks for "normal, spiral....." etc
                                      That was it, nothing else happens.
                                      Sorry - what has to be done next ?
                                      Thanks for your comments
                                      Uli

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

                                        @atelierpaar said:

                                        Hi there,
                                        after installing "StairMaker" the plugin shows up under "plugins"
                                        The Dialog box asks for "normal, spiral....." etc
                                        That was it, nothing else happens.
                                        Sorry - what has to be done next ?
                                        Thanks for your comments
                                        Uli

                                        This is what you should see
                                        stair maker.gif

                                        If not, open the Ruby Console window(Windows>Ruby Console) and try the plugin again to see if there are any error messages.

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

                                        http://sdmitch.blogspot.com/

                                        1 Reply Last reply
                                        Reply Quote 0
                                        • atelierpaarA
                                          atelierpaar
                                          last edited by

                                          thanks for your quick response
                                          Here is what i get from the Ruby Console

                                          Error: #<ArgumentError: Cannot convert "7.65748031496063" to Length>
                                          C:/Users/Architekt/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/Stair Maker.rb:267:in to_l' C:/Users/Architekt/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/Stair Maker.rb:267:in get_defaults'
                                          C:/Users/Architekt/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/Stair Maker.rb:77:in reset' C:/Users/Architekt/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/Stair Hello Maker.rb:68:in initialize'
                                          C:/Users/Architekt/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/Stair Maker.rb:25:in new' C:/Users/Architekt/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/Stair Maker.rb:25:in block in <top (required)>'
                                          SketchUp:1:in `call'

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

                                            @atelierpaar said:

                                            thanks for your quick response
                                            Here is what i get from the Ruby Console

                                            Error: #<ArgumentError: Cannot convert "7.65748031496063" to Length>
                                            C:/Users/Architekt/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/Stair Maker.rb:267:in to_l' C:/Users/Architekt/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/Stair Maker.rb:267:in get_defaults'
                                            C:/Users/Architekt/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/Stair Maker.rb:77:in reset' C:/Users/Architekt/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/Stair Hello Maker.rb:68:in initialize'
                                            C:/Users/Architekt/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/Stair Maker.rb:25:in new' C:/Users/Architekt/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/Stair Maker.rb:25:in block in <top (required)>'
                                            SketchUp:1:in `call'

                                            Do you use ',' instead of '.' between number and fractional part?

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

                                            http://sdmitch.blogspot.com/

                                            1 Reply Last reply
                                            Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better πŸ’—

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 2 / 6
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement