Pressure Pipe Networks , Appurtenances can attach surface?

hi
try
Can you attached example drawing

https://help.autodesk.com/view/CIV3D/2022/ENU/?guid=55069ef7-2826-57a4-08c5-0976b99c8690

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.