# What's the formula for finding a slope of a pipe

Hello friends, I’m trying to edit the slope value of a pipe in dynamo. Since slope value is read-only, it cannot be editable. I’m wondering if some knows the formula to find a slope of a pipe. The formula should be able to find 1% slope of the pipe from point A to point B. Following is a formula that I’ve come up with but its not accurate, hope someone could help me on this.

Would appreciate any help. Thank you

Hi,

For percent slope equals (rise / run) x 100

to convert to % Should be a way of extracting the parameter value though. Have you tried built in parameters?

1 Like

Hi Thanks @Ewan_Opie for sharing the slope formula with me. In this case, I’ve to find the ‘Z’ value for second point where the pipe should be connected in a way that slope remains at 1%. I’m a bit confuse, how do I find that spot. And what about the built-in parameters that you’ve mentioned?

Here is an example of how to use the geometry of the pipes to attain what you have, this should help you get to what you need.

1 Like

Awesome, thank you so much @Ewan_Opie for sharing the solution. Bless you : -)

@Ewan_Opie is there a way to set the slope value on pipes in Dynamo? Would appreciate if you share some trick, cuz slope value is not editable.