Invert elevation

I have sewer network that is already installed and I want to run analysis .. I assigned the ground elevation to each manhole using TRex now I want to assign the invert elevation so how I do that automatically like TRex method!?