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