pls. If there is lisp draw simple stair (one runner) .

pls. If there is lisp draw simple stair (one runner) .

adellll
Enthusiast Enthusiast
1,949 Views
20 Replies
Message 1 of 21

pls. If there is lisp draw simple stair (one runner) .

adellll
Enthusiast
Enthusiast

pls...I am looking for lisp draw simple stairs in plan just one runner ( with fast input treads number only and with fixed length of 0.3 m for each) in metric units ,and I will make the calculation of staircase by myself..thanks for anyone who has helping me out..

0 Likes
Accepted solutions (2)
1,950 Views
20 Replies
Replies (20)
Message 2 of 21

Sea-Haven
Mentor
Mentor
0 Likes
Message 3 of 21

adellll
Enthusiast
Enthusiast

no solution yet appear so i try here ...

0 Likes
Message 4 of 21

diagodose2009
Collaborator
Collaborator

Exists the solution, but I need more experienced from your-floor. Why?

Because I can work on floor-plain (dxf or dwg) , for develop together, more checking-

--function/s  . I attach first version of lisp, but is very fixed.

Def. The functions checking

  1. the Layer-Exists? No , but your program pp_adell_stair00.vlx need create the layer's
  2. the Dimension Style Exists? No, you must redefine the dimension'style .
  3. the you must load "HIDDEN2" line-style.
  4. the room of polyline need area calculation
  5. you type C:Rus
  6. we can inject inside vlx? more calculations math equations = area, height gap,size, dif of area, expt, distance/s , slope distance
  7. Clipboard3.jpg

 

 

-You send to me the pm If you need a worker inside your Floor-plain.as Surveyour. After I work 12hours,  after I can develop your-lisp needs in 3hours.

 

Message 5 of 21

adellll
Enthusiast
Enthusiast

thanks for helping me , I will try it and tell you the result of testing it..I appreciate your time and effort..

 

0 Likes
Message 6 of 21

adellll
Enthusiast
Enthusiast

this lsp not work properly with me . pls if you have one else more simple I ll be glad , and thanks a lot. when I type rus it give me like this bellow .

Command: RUS
$F100$G=$F101$G=$F102$G=$F103$G=$F104$G=$F105$G=$F106$G=$F107$G=$F108$G=$F109$G=$F110$G=$F111$G=$F112$G=$F113$G=$F114$G=$F115$G=$F116$G=$F117$G=$F118$G=$F119$G=$F120$G=$F121$G=$F122$G=$F123$G=$F124$G=$F125$G=$F126$G=$F127$G=$F128$G=$F129$G=$F130$G=$F131$G=$F132$G=$F133$G=$F134$G=$F135$G=$F136$G=$F137$G=$F138$G=$F139$G=$F140$G=$F141$G=$F142$G=$F143$G=$F144$G=$F145$G=$F146$G=$F147$G=$F148$G=$F149$G=$F150$G=$F151$G=$F152$G=$C153$D=$D154$E=$D155$E=$D156$E=$D157$E=$D158$E=$D159$E=$D160$E=$D161$E=$D162$E=$D163$E=$D164$E=$E165$F=
Redefining block "j9010"
$F166$G=$F167$G=$F168$G=$F169$G=$F170$G=$F171$G=$F172$G=$F173$G=$F174$G=$F175$G=

0 Likes
Message 7 of 21

hosneyalaa
Advisor
Advisor

if you have civil3d  use dynamo

7.gif

Message 8 of 21

adellll
Enthusiast
Enthusiast

I use autocad 2022 only , thanks for help I appreciate it. in the second thought I find the lisp I want is very close to array command.

0 Likes
Message 9 of 21

diagodose2009
Collaborator
Collaborator

Yout test the pp_adell_stair.vlx in different drawing, or empty Drawing.dwg..eg. minim 10Drawing/s dwg  files.

You make user account on this forum, http://lisp2arx.3xforum.ro/login.php , I hope, I can chat there.

Message 10 of 21

adellll
Enthusiast
Enthusiast

I use same dwg file , and pls. i want simple lisp

I find the lisp I want is very close to array command.

thanks for your reply..

0 Likes
Message 11 of 21

Kent1Cooper
Consultant
Consultant
Accepted solution

This doesn't need to be complicated.  Minimally tested:

 

(defun C:STAIRRUN (/ pt qu nosing1)
  (setq
    pt (getpoint "\nLower end of first Riser nosing Line: ")
    qu (getint "\nNumber of Risers: ")
  ); setq
  (command "_.line" "_non" pt "_non" (polar pt (/ pi 2) 1.2) "")
  (setq nosing1 (entlast)); for selection in Array
  (command
    "_.copy" "_last" "" "-0.05,0" ""
    "_.chprop" "_last" "" "_ltype" "hidden2" "_color" 4 ""
    "_.array" nosing1 "_last" "" "_rectangular" 1 qu -0.3
  ); command
  (prin1)
)

 

It could do more -- force a particular Layer to be current [it draws on the current Layer], wrap Undo begin/end around it all, ask for a width instead of using your 1.2 [which you didn't specify as a constant, but I assumed from your dimension in the larger plan], etc.

 

I had it ask for the number of risers rather than the number of treads, because that can be used directly in the Array command, but it could ask for the number of treads, and use one more than that in the Array.

 

You may be interested in my StairPlan command, defined in STAIRS.lsp, available >here<.  It calculates the number of risers needed for you, based on the floor-to-floor height and maximum allowable riser.  And it has other features.  It's for Imperial units, built around US typical Code provisions, but it wouldn't be hard to adjust for metric units.

Kent Cooper, AIA
Message 12 of 21

adellll
Enthusiast
Enthusiast
Accepted solution

thanks a lot , this is exactly what i want , I appreciate your effort . and I ll give try to your other lisp StairPlan you are very helpful. thanks...

0 Likes
Message 13 of 21

gustavobernardi
Advocate
Advocate

Use the app Ringo, it inserts dynamic blocks of simple 2d Stairs and Railings.

https://www.instagram.com/p/Bd6JblcngZ9/

Install video:

https://www.youtube.com/watch?v=sfJcaS_twKg

 

0 Likes
Message 14 of 21

adellll
Enthusiast
Enthusiast
I go to link to your other lisp StairPlan and the dawnlaod page not found if you send the lisp to me with metric units , I ll be so grateful for your help , and thanks a lot..
0 Likes
Message 15 of 21

Kent1Cooper
Consultant
Consultant

@adellll wrote:
I go to link to your other lisp StairPlan and the dawnlaod page not found ....

That's unfortunate.  They've stopped accepting user submissions like that, but what's there is supposed to be available.  I tried some others, and got the same thing, so it's not specific to that routine -- maybe it's only temporary.

 

Anyway, I attach the file [which may be updated some compared to that one], though it's still in Imperial units.  If you accept all defaults, and give it a floor-to-floor height of something like 120, you can at least see what it does.  Read the comments at the top.  [One thing it does not yet do is your hidden underneath riser face lines in plan, but that could be added.  It can do a 2-run stair all at once, but not a 4-run as in your overall example plan.]

 

To convert to metric units I would need to know what the rules are in your Building Code [assuming there are such rules], specifically the maximum allowable riser height and minimum tread depth, and how handrail ends are supposed to relate to stair nosings.  Also whether you draw with a drawing unit representing a meter [I assume from your sample drawing, but please confirm] or a millimeter [commonly used] or something else.

Kent Cooper, AIA
0 Likes
Message 16 of 21

adellll
Enthusiast
Enthusiast
thanks a lot , you are so helpful , you save for me a lot of time , and I hope for you more progress in life..
0 Likes
Message 17 of 21

Sea-Haven
Mentor
Mentor

Here in AUS

SeaHaven_0-1704264624782.png

Was trying to find this.

SeaHaven_1-1704264684000.png

 

 

0 Likes
Message 18 of 21

adellll
Enthusiast
Enthusiast

THANKS , I am agree with that the design of stair is complex sometime but I mean few steps only ( like 6 steps ) one runner with very simple calculation ..have a good day and thanks for your effort..

0 Likes
Message 19 of 21

Kent1Cooper
Consultant
Consultant

@Kent1Cooper wrote:

.... To convert to metric units I would need to know what the rules are in your Building Code [assuming there are such rules], specifically the maximum allowable riser height and minimum tread depth, and how handrail ends are supposed to relate to stair nosings. .....


I find significant differences between the Australian rules and the British rules.  For example, for a public stair, the range of riser height is 150mm to 170mm in the UK, but 150mm to 215mm in Australia.  [That's over 26% greater riser height allowed in Australia, which would have a major impact on the number of steps needed to traverse a floor-to-floor distance.]  The range in "going" [what we in the US call "tread"] length is 250mm to 400mm in the UK, but 215mm to 305mm in Australia -- meaningfully less at both ends.  The UK has a slope range ["normal" but it seems not mandatory?] based on twice the riser plus the going, but Australia has one [mandatory] based on multiplying the two together.  Etc.  I assume there are yet different requirements in any number of other countries, and possibly even in different counties or states or prefectures or whatever the jurisdictions are, within the same country.

Kent Cooper, AIA
Message 20 of 21

adellll
Enthusiast
Enthusiast

the role like English role somehow riser height from 14 cm to 17 cm , tread distance from 27 cm to 33 cm (30 approx.) , and must Verify the equation 2R + 1 t = from 60 to 63  , in general try simplest way and thanks a lot for your effort.

0 Likes