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.
    • TIGT Offline
      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 Offline
        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 Offline
          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 Offline
            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 Offline
              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 Offline
                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 Offline
                  GudmHr
                  last edited by

                  Thank you, sdmitch.

                  1 Reply Last reply Reply Quote 0
                  • bprzybytkowskiB Offline
                    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 Offline
                      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 Offline
                        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 Offline
                          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 Offline
                            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 Offline
                              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 Offline
                                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 Offline
                                  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 Offline
                                    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 Offline
                                      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 Offline
                                        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 Offline
                                          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
                                          • atelierpaarA Offline
                                            atelierpaar
                                            last edited by

                                            Well, I dont get to type in any value.
                                            the plugin quits right after the first Dialog box

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

                                            Advertisement