[Plugin] Stair Maker

[Plugin] Stair Maker

Postby sdmitch » Sat Aug 27, 2011 3:00 pm

In response to http://forums.sketchucation.com/viewtopic.php?f=323%26amp;t=39280

Creates simple staircases of three varities, straight, spiral, and u-shape.

THE STAIRS CREATED BY THIS PLUGIN ARE FOR ILLUSTRATION PURPOSES ONLY AND ARE NOT INTENDED TO MEET ANY STRUCTURAL OR BUILDING CODES

Update:20160422
Plugin should now work with comma or period decimal separator.


Update:20120924
Added "L" shape stair option.

Update:20120120
Added input option for step angle increment for spiral staircase.

Update:20111217
Stair Height corrected for U-Shape so it matches normal and spiral usage.
Added additional input checks and cleaned up input dialogs so they are more consistent.
Enter zero for height, riser or steps to calculate it.

Update:20140319
Made 2014 compliant.
4
Last edited by sdmitch on Mon Apr 25, 2016 8:47 pm, edited 11 times in total.
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

Re: [plugin] Stair Maker

Postby jsteacy » Sun Aug 28, 2011 12:06 am

I think it's a good simple script, I had no bugs. One comment would be to see each step (in the open set of stairs) be a component, but then again I have no idea how to make that happen in ruby script...
0

jsteacy 
Premium Member
Premium Member
 

Re: [plugin] Stair Maker

Postby utiler » Sun Aug 28, 2011 1:04 am

Well done Sam! I'm yet to try it as I'm away for the weekend. Already have a few ideas for you to consider in V3 so I'll post again tomorrow when I'm on my computer. Thanks again for your willingness to help! :thumb:
0
purpose/expression/purpose/....
User avatar
utiler 
Top SketchUcator
 

Re: [plugin] Stair Maker

Postby utiler » Mon Aug 29, 2011 1:41 am

Sam, Just had a chance to test it and you've pretty much nailed it!! :berserk:

A few thing:

1. Units - is there a way to set a default [see below] I assume you are using imperial so this is how it pops up in metric....
StairMaker2-units.png


2. Number of risers in first flight - maybe change this wording to be consistent with the preceding terminology
StairMaker2-risers2Landing.png


3. In-situ stair: the stair treads created are reversed [see below] not sure why....
stairMaker2-ReverseFace.png


4. Loose geometry created on in-situ stair [see attached screens video]
stairMaker2-LooseGeometry.swf


5. How is the stair thickness determined? is it via landing thickness or stair thickness:
stairMaker2-StairThickness.png


6. When the stair is complete it is positioned at 0,0. can it be positioned on the cursor? Many times the origin is far, far away....

Great work mate!! :thumb: :thumb: :thumb:
0
purpose/expression/purpose/....
User avatar
utiler 
Top SketchUcator
 

Re: [plugin] Stair Maker

Postby sdmitch » Mon Aug 29, 2011 2:09 am

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"
0
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

Re: [plugin] Stair Maker

Postby Jim » Mon Aug 29, 2011 2:20 am

sdmitch wrote:6. 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.
0
Hi

Jim 
Global Moderator
 

Re: [plugin] Stair Maker

Postby utiler » Mon Aug 29, 2011 7:36 am

sdmitch wrote: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. :thumb:
3. the faces are reversed; you can see by the front face ' back face color....
4. :thumb:
5. actually, leave it like this. It's pretty close to what an in-situ stair would look like...
6. :thumb: :thumb:

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,
0
purpose/expression/purpose/....
User avatar
utiler 
Top SketchUcator
 

Re: [plugin] Stair Maker (UPDATE Aug 30, 2011

Postby sdmitch » Wed Aug 31, 2011 1:42 am

Andrew, I hope this will complete your wish list.
0
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

Re: [plugin] Stair Maker (UPDATE Aug 30, 2011

Postby utiler » Wed Aug 31, 2011 2:54 am

sdmitch wrote: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!
0
purpose/expression/purpose/....
User avatar
utiler 
Top SketchUcator
 

Re: [plugin] Stair Maker (UPDATE Aug 30, 2011

Postby dizain » Wed Aug 31, 2011 8:17 am

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.
0

dizain 
 

Re: [plugin] Stair Maker (UPDATE Aug 30, 2011

Postby Ken » Wed Aug 31, 2011 2:21 pm

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
0
Fight like your the third monkey on Noah's Ark gangway.
User avatar
Ken 
Premium Member
Premium Member
 

Re: [plugin] Stair Maker (UPDATE Aug 30, 2011

Postby sdmitch » Wed Aug 31, 2011 8:10 pm

dizian, yes.

Ken, what shape rails?
0
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

Re: [plugin] Stair Maker (UPDATE Aug 30, 2011

Postby tomot » Thu Sep 01, 2011 3:52 am

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!
0

tomot 
PluginStore Author
PluginStore Author
 

Re: [plugin] Stair Maker (UPDATE Aug 30, 2011

Postby Ken » Thu Sep 01, 2011 10:07 am

sdmitch wrote: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
0
Fight like your the third monkey on Noah's Ark gangway.
User avatar
Ken 
Premium Member
Premium Member
 

Re: [plugin] Stair Maker (UPDATE Aug 30, 2011

Postby sdmitch » Thu Sep 01, 2011 5:57 pm

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.
0
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

Re: [plugin] Stair Maker (UPDATE Aug 30, 2011

Postby tomot » Thu Sep 01, 2011 7:45 pm

sdmitch wrote: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
0

tomot 
PluginStore Author
PluginStore Author
 

Re: [plugin] Stair Maker (UPDATE Aug 30, 2011

Postby Dubman1013 » Mon Oct 31, 2011 8:15 pm

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!
0

Dubman1013 
 

Re: [plugin] Stair Maker (UPDATE Aug 30, 2011

Postby chaluga » Fri Nov 18, 2011 11:27 pm

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"
0

chaluga 
 

Re: [plugin] Stair Maker (UPDATE Aug 30, 2011

Postby tspco » Fri Dec 16, 2011 1:01 pm

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?
0

tspco 
 

Re: [plugin] Stair Maker (UPDATE Aug 30, 2011

Postby sdmitch » Fri Dec 16, 2011 4:52 pm

tspco wrote: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.
0
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

Re: [plugin] Stair Maker (UPDATE Aug 30, 2011

Postby tspco » Sat Dec 17, 2011 3:48 am

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.
0

tspco 
 

Re: [plugin] Stair Maker (UPDATE Aug 30, 2011

Postby sdmitch » Sat Dec 17, 2011 4:16 am

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.
0
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

Re: [plugin] Stair Maker (UPDATE Aug 30, 2011

Postby tspco » Sat Dec 17, 2011 4:24 am

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

tspco 
 

Re: [plugin] Stair Maker (UPDATE Aug 30, 2011

Postby tspco » Sat Dec 17, 2011 4:27 am

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'
0

tspco 
 

Re: [plugin] Stair Maker (UPDATE Aug 30, 2011

Postby sdmitch » Sat Dec 17, 2011 5:03 am

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.
0
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

Re: [plugin] Stair Maker (UPDATE Aug 30, 2011

Postby tspco » Sat Dec 17, 2011 5:37 am

Using the version from your blog. If I set the riser height to 7" and the overall height to 120" , 4 steps to riser make a new u-shape stair. I get a staircase that has 7 steps over 2 feet apart, or something like that, no riser.
ruby console details are:

Error: #<NoMethodError: undefined method `entities' for nil:NilClass>
C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/Stair Maker.rb:370:in `ushape_stair'
C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/Stair Maker.rb:197:in `onLButtonDown'

So no worky. It could be I need to download the tut from your blog and review
0

tspco 
 

Re: [plugin] Stair Maker (UPDATE Aug 30, 2011

Postby sdmitch » Sat Dec 17, 2011 3:41 pm

tspco wrote:Using the version from your blog. If I set the riser height to 7" and the overall height to 120" , 4 steps to riser make a new u-shape stair. I get a staircase that has 7 steps over 2 feet apart, or something like that, no riser.
ruby console details are:

Error: #<NoMethodError: undefined method `entities' for nil:NilClass>
C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/Stair Maker.rb:370:in `ushape_stair'
C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/Stair Maker.rb:197:in `onLButtonDown'

So no worky. It could be I need to download the tut from your blog and review


No there is nothing in the tutorial that will help with this problem. I can't get it to fail and you can't get it to work. I'm at a loss as to why.

I can see where there might be a little confusion regarding riser and height of stairs. The height entry is for each flight of steps not the overall height of the completed stairs which is why when you entered 120" the steps were so far apart. The height can be determined by number of risers and riser, or riser determined by height and number of risers. So, if you can ever get the plugin to work, enter values for any two and 0 for the third and let the plugin calculate it.
0
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

Re: [plugin] Stair Maker (UPDATE Dec 17, 2011)

Postby axys » Tue Jan 17, 2012 10:52 pm

I've tried this for a spiral but I can't see a way to say what is the going on the tread or, better, how to set the angle of each tread ie 22.5 degrees. I need a spiral with 16 risers, each to go 22.5 degrees ie a full circle - how can I do that please? For the width of the tread, say 800mm, would I set the step max and step min to 2 x 800 plus the centre column?
0

axys 
 

Re: [plugin] Stair Maker (UPDATE Dec 17, 2011)

Postby sdmitch » Wed Jan 18, 2012 3:33 am

axys, at present the angular increment for spiral stairs is fixed at 15 degrees. I will need to make that an option. for now, I have attached a spiral stair with 16 steps @ 22.5 degree increment and 800mm wide.
0
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

Re: [plugin] Stair Maker (UPDATE Dec 17, 2011)

Postby axys » Wed Jan 18, 2012 10:16 am

sdmitch wrote:axys, at present the angular increment for spiral stairs is fixed at 15 degrees. I will need to make that an option. for now, I have attached a spiral stair with 16 steps @ 22.5 degree increment and 800mm wide.


Tremendous! Thank you so much. Another useful option would be clockwise or anticlockwise - would it be too much to ask you to make this stair in the opposite direction for me? Thanks again.
0

axys 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

Next


 

Return to Plugins

Who is online

Users browsing this forum: behnam mirmotahari, edocanto, Gobirchandran, MtnArch and 14 guests

Visit our sponsors: