Element.SetParameterByName operation failed. The parameter is read-only

Unfortunately you can’t. However you can add slope in your Geometry before you create pipes in Revit.

2 Likes