[Plugin] Stair Maker
-
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 -
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:into_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:inreset' 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:25same problem different values
-
@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:into_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:inreset' 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:25same 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.
-
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.
-
@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.
-
GudmHr, Please check your personal messages for an attempted fix to the "," versus "." problem.
-
Thank you, sdmitch.
-
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:into_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:inreset' 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:innew' 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:into_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:inreset' 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:innew' 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?
-
@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:into_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:inreset' 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:innew' 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:into_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:inreset' 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:innew' 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.
-
The version you provided me by PM seems to be working without problem - thanks!
-
how can i learn to work on this plugin?
i see the parameter window under my sketchup, but the result are blank.
-
@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.
-
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'.
-
@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?
-
@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.
-
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 -
@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
UliThis is what you should see
If not, open the Ruby Console window(Windows>Ruby Console) and try the plugin again to see if there are any error messages.
-
thanks for your quick response
Here is what i get from the Ruby ConsoleError: #<ArgumentError: Cannot convert "7.65748031496063" to Length>
C:/Users/Architekt/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/Stair Maker.rb:267:into_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:inreset' 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:innew' C:/Users/Architekt/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/Stair Maker.rb:25:in
block in <top (required)>'
SketchUp:1:in `call' -
@atelierpaar said:
thanks for your quick response
Here is what i get from the Ruby ConsoleError: #<ArgumentError: Cannot convert "7.65748031496063" to Length>
C:/Users/Architekt/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/Stair Maker.rb:267:into_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:inreset' 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:innew' 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?
-
Well, I dont get to type in any value.
the plugin quits right after the first Dialog box
Advertisement