There are digitizer based trenchwork programs that allow you to...
digitize the top of trench from profiles
digitize invert of pipe from profile
set a typical section for the trench including...
outside dia of pipe
the geometry of the trench including the depth of bedding
material...