Check slope direction on pipes

Hey, I’m trying to create a way of checking our sewage systems for the correct slope. I’m not really happy with Revit’s abilities when it comes to slopes, but it’s sometimes a requirement in our projects. After numerous changes and updates to the model, we occasionally end up with individual pipes sloping upward against the flow direction.

Does anyone have ideas on how to check this? I’m not an expert in Dynamo, but I can make it work—I just don’t see a way to check this using the data I can pull from the system. It’s easy for a simple setup, but as soon as there’s a branch in the network, I can’t find a solution.

Using the MEPover package.

I did Connect Into for some of this piping, manually changed the end of the run for the upturned slope, deleted a pipe section, and re-drew from low point to high point just to scramble the internal data a bit.

You can sort of follow along that for a correctly sloped drainage system, the In Connector should have the higher of the Z-values for a given pipe, and the Out Connector the lower.

Where this isn’t the case (index 1), corresponds to the wrongly sloped pipe in the model.

The end of the graph has some sorting and a quick z-value check to see what the state of the pipes are. Positive is sloped as intended, negative is incorrectly sloped, zero is no-slope (the out-of-plane pipe connections into my placeholder family)

2 Likes