I need a Help to design a Lisp

I need a Help to design a Lisp

Anonymous
Not applicable
1,822 Views
18 Replies
Message 1 of 19

I need a Help to design a Lisp

Anonymous
Not applicable

Hi guys, 

I am working to create a Lisp named "Railing"

Just wondering to know if anyone you guys, could help me to design a Lisp for a swimming pool stairs

in reference to the attached file, 

 

As you can see in the below Detail, 

 

The Green Values are in mm and they are fixed, 

The Orange one are the one i want to input into the Lisp in mm

The pink Values will be variable based on my input 

 

I would appreciate your help. 

 

 

 

unnamed.jpg

 

0 Likes
1,823 Views
18 Replies
Replies (18)
Message 2 of 19

john.uhden
Mentor
Mentor

Very interesting.  The only client I have left is a swimming pool liner and cover manufacturer.  I have written them routines for the design of the vinyl panels for a number of different shapes... rectangle, grecian, oval, true-L, lazy-L, and freeform.  An upcoming task is to come up with a STEPS command.  But you are dealing with a different aspect.

 

I really know nothing about dynamic blocks, but I wonder if this a candidate for that.

John F. Uhden

0 Likes
Message 3 of 19

Anonymous
Not applicable

Actually, 

This is a Semi General detail for what i am dealing with, 

But because my team spending time to design the same 

detail just with other values as mentioned in the sketch

if i could develop a lisp for it or an app, is much more easier,.

 

Steps commend is not working as the major point is the actual railings.

if you find it let me know. 🙂

 

Message 4 of 19

roland.r71
Collaborator
Collaborator

Yes, it does look like this could be solved with a dynamic block.

(but i still need to create my first... )

 

edit:

...and only one of the orange values is needed as input. As the other side will follow the same increment. (adding steps)

 

Message 5 of 19

Anonymous
Not applicable

Crude program. See if this is what you are looking for. I hard coded the width of the railing to 30 mm

 

;degrees to radians

(defun dgtrd(a)
(* a (/ PI 180.0))
)
;relative offset point based upon X and Y displacement
(defun newpt (a b c d e / x)
(setq x (polar a (dgtrd c) b))
(setq x (polar x (dgtrd e) d))
(setq x x)
)
;Main program
(defun c:poolrail()
(setq hdst (getreal "\nEnter horizontal spacing: "))
(setq vdst (getreal "\Enter vertical spacing: "))
(setq pt1 (getpoint "\nSelect starting point: "))
(setq pt2 (newpt pt1 0 0 vdst 90))
(setq pt4 (newpt pt1 hdst 0 vdst 90))
(setq pt3 (newpt pt4 0 0 vdst 90))
(command "PLINE" pt1 pt2 pt3 pt4 "")
(setq lent (entlast))
(command "FILLET" "R" 152 "FILLET" "P" lent)
(command "OFFSET" 15 lent (newpt pt1 1 0 0 0) lent (newpt pt1 1 180 0 0) "")
(command "LINE" (newpt pt1 15 0 0 0) (newpt pt1 15 180 0 0) "")
(command "LINE" (newpt pt4 15 0 0 0) (newpt pt4 15 180 0 0) "")
)

0 Likes
Message 6 of 19

Kent1Cooper
Consultant
Consultant

I'd just like to point out that if this is in the US, or wherever it is has some kind of similar standards, the height of the railing is not being measured in the right place, but needs to be the height of the sloped portion of the rail above the nosings of the steps.  For US application, see Sections 242.2, 505.4 and 1009.6 of the ADA Standards.

 

But beyond that, is that 42-degree angle really always the same?  Doesn't it vary with the specific depth of the pool, and the number of steps that might not always be the same riser height but are probably always the same tread depth?  Certainly the angle of slope of interior stairways is not always the same.

 

Combining the above paragraphs, if the slope really varies somewhat, then that 990 dimension for the height at the "shoulder" would actually need to vary, affected by the slope.

 

If the angle is really always the same, and the step sizes are always the same, then the pool depth will always have to be a multiple of the step height, and you could just make one for the two-step depth, one for a three-step depth, and so on as far as they typically go, and just have a limited number of pre-drawn blocks, without the need for any routine.

Kent Cooper, AIA
Message 7 of 19

Anonymous
Not applicable

Hey Garbiel,

 

Thank you for your time, 

Do you mind if i ask you if i want to apply this code through an application on visual basic How can i do so ? 

 

If i want to have options between the way of selection, 

 

Please find the application DVB file as attached in a zipfile  

 

🙂

0 Likes
Message 8 of 19

roland.r71
Collaborator
Collaborator

@Kent1Cooper wrote:

-snip-

 

If the angle is really always the same, and the step sizes are always the same, then the pool depth will always have to be a multiple of the step height, and you could just make one for the two-step depth, one for a three-step depth, and so on as far as they typically go, and just have a limited number of pre-drawn blocks, without the need for any routine.

He only needs 1. A dynamic block (containing all the variations).

It could even be made to vary on step hight and/or depth. I think.

 

(but my collegae who knows all about them is on holiday ...)

Message 9 of 19

Anonymous
Not applicable

Hey Kenth, 

Thank you for the message, 

 

For the manufacturing purposes, The actual railing diameter is 48mm 

and what is important and fixed here as i mentioned in the sketch,

The angel between rail and rise (R152.40)

This shall to be fixed for all of my fabrication purposes,

 

Code sets out a 990mm Railing height on the floors with 100mm encore into the exiting finish .

hens other values change, the actual angel of 152.40 degree is not changing, 

 

 

 

0 Likes
Message 10 of 19

Anonymous
Not applicable

Roland 

 

the angle is really always the same, but  the step sizes are not always the same, but at the end shall to be some how which is not effect the angle,

this railing is at the pool entrance, the problem is Railing Rise and Run is the important value, and it would be different in different situation, 

 

But my question is with this case of Dynamic block with all variations, am i able to input the numbers for Railing Rise and Run ? Or Number of steps ?

 

thx

 

 

0 Likes
Message 11 of 19

john.uhden
Mentor
Mentor

After looking at your sketch a little more, I would write a program where the input is:

 

1.  Height of riser.

2.  Width of step.

3.  Number of risers.

 

With givens being:

a)  horizontal offset from top and bottom steps

b.  height above each step.

c.  bend radius (at centerline of pipe or otherwise)

d.  depth of embedment.

e.  specify if measurements are to top of pipe or centerline of pipe.

f.   pipe outside diameter.

g.  modulus of elasticity (only kidding).

 

I think that's it.  The rest is just math.

 

Unless there are constraints such as the maximum length of pipe.
Do you ever get a condition where there has to be a middle leg?

John F. Uhden

0 Likes
Message 12 of 19

Anonymous
Not applicable

Hey John, 

Thank you for your kind reply, 

 

please find the attached  drawing, as a perfect sample of what i am looking to do.

what i want to do is designing a some sort of Dynamic block, Lisp Or An application in visual basic 

 

  • take the lower and upper railing height (Indicated in drawing with Green Rectangle)
  • take the rise and run as indicated with Orange rectangle (Dimension is Center/Center)
  • take the number of steps between lower floor and higher floor
  • take the Width of the railing.
  • Angel of 152.40 Degree is Fix 

and  then draft the exact section as drawing, (Include dimensions and Hatch lines) 

 

again thank you.

0 Likes
Message 13 of 19

ahsattarian3
Enthusiast
Enthusiast

hello sir

 

I've written similar lisp routines before. u can see it attached.

 

If still needed, I can do it for u.

 

Please tell me via ahsattarian3@gmail.com or +989126049289

Message 14 of 19

Anonymous
Not applicable

Hello, ahsattarian3 

Thank you for contacting me. I saw the attached file, 

I do appreciate your time in advance, its absolutely time saving if you can help me and write this lisp. 

It's exactly something similar to this,

I attached the DVB (Visual Basic Application) file for the application appearance I am looking for,
and a DWG file for final drawing  herein, 
which would be LISP Or Autocad visual basic application outcome, herein,

 

You can contact me Via Email, " BobbyJamesdesign@Gmail.com"

 

Thank you. 

 

 

 

 

 

0 Likes
Message 15 of 19

ahsattarian3
Enthusiast
Enthusiast

Hello Sir

 

I worked on it.

 

We can have only one parameter not two, because the angle is also fixed.

 

If so, tell me to continue.

 

Regards, Amir

Message 16 of 19

Anonymous
Not applicable

Amir Thank you for note.

1- Yes the angle is fix
2- The Cyan Rectangles are fix
3- But the Orange Rectangles (RISE /RUN- Floor To Floor Dimension )
The way it works is Rise will be divided by 15cm-20cm to gives us equal numbers of steps in Floor Rise.

Hence the only parameter is changing is Rise and RUN

But
If I could have the option by choosing the number of steps, Then program shall calculate the Rise for each step following #3


So we would have the option to give the program just Rise and Run, and get the Section,
OR
By limiting the number of steps we would like to get the limited number of steps but in the same Rise and Run.

For example, if we do have Rise for 1000 mm and Run for 1790mm

It would be like this :
5 Steps Each 200mm Rise. and 300 Run,

Or
7 Steps Each 142mm Rise and 300 Run.
For both is no different is The Railing System


However this would be in effect even for the Thickness of The railing, If we could define it
it is much better for us.

 

Again Thank you.

Message 17 of 19

Kent1Cooper
Consultant
Consultant

@Anonymous wrote:

....

1- Yes the angle is fix
....
For example, if we do have Rise for 1000 mm and Run for 1790mm

It would be like this :
5 Steps Each 200mm Rise. and 300 Run,

Or
7 Steps Each 142mm Rise and 300 Run.
For both is no different is The Railing System

....


I must point out that if those two combinations of rise and run for the steps [different  rises, same  run] are possible, then the angle cannot be fixed.  If it is, then in at least one of those situations [and possibly both], the handrail will be at a different height  above the step at the top than it is at the bottom, which [at least here in the US] would not be allowed by any Code I can think of -- handrails are required to be of consistent height  above the nosings.  [See, for instance, the 2015 International Building Code Section 1014.2, or the ADA Standards Section 505.4 and 1009.6.1.]

 

If these requirements don't apply where you are, I would check very carefully whether there is some other similar standard.  If there is no such requirement, I would strongly suggest you act as if there is, because a handrail whose slope does not match the slope of the steps is a potential hazard for all the reasons that such requirements exist here, and a lawsuit in the making.

Kent Cooper, AIA
0 Likes
Message 18 of 19

Anonymous
Not applicable

Kent 

Thanx for explanation, 

The angel is Center to Center, and all point to design this app, is just because of FIx Angel

This is a Pool handrail, 

Not a General Residential and residential code are not relative to this. 

 

Amir made an Idea and He is working on it, 

 

:0 Thank you all, 

 

 

 

0 Likes
Message 19 of 19

Kent1Cooper
Consultant
Consultant

@Anonymous wrote:

 

....

This is a Pool handrail, 

Not a General Residential and residential code are not relative to this. 

.... 


In terms of at least some of the standards I cited, it doesn't matter -- a pool stair has to meet the requirements of a regular stair, with certain exceptions [none related to handrails].  As long as you make sure you know what really applies, you may be safe permit-wise, but I still think it's a hazard to have the slopes of the steps and the handrail mismatched to any noticeable degree -- there's a reason they're required to match in regular stairs.

Kent Cooper, AIA
0 Likes