The second is in the design of sanitary building drain systems, and the third is the actual drawing of the plumbing pipe networks. The first two applications, sizing the water supply and drainage systems, require the use of computer programs designed especially for those applications.
The third application, drawing the piping network, can be automated with any number of general purpose computer aided drafting (CAD) programs such as AutoCAD.