Automatic connections of drawing pipes from lines

Hi guys
Im trying to create pipes with connections while creating pipes in dynamo i have created pipe using mepover package but my problem is it does not create connections as we draw manually