Pressure Pipe Networks , Appurtenances can attach surface?

Can you attached example drawing

i don’t know c#

You can get the surface from selection
It calculates how high PressureAppurtenance
And you go down from the surface at PressureAppurtenance.SetLocation

I think that the main issue that the pressure appurtenances’ elevations are taken from the insertion point of the connected pressure pipes, while the elevation of it is fixed value set in its 3D CAD file. What we are looking for is a new approach to make the height as range value to be adjusted regarding to the reference surface.