PressurePipeRun.ByObject with fittings

Would it be possible to create pressurepiperun.byobject by also inserting the connections between the pipes? How could this be done?