I don't remember what version you are on and the post doesn't mention it, so I can't really give you a proper code example without it.
Not sure I follow the sample question. Joined_Pipe is the edge feature class that participates in the geometric network and is displayed in the 'Geographic' data frame along with other basemap layers. When a user runs the model, they draw a polygon on the map. From the polygon, we pick up the joined_pipe features. Those are then used as the input for the schematic create diagram tool. Does that answer the question?