Pipe Tags in Revit

Hi all

Im very new to Dynamo but was wondering would it be possible to get it to tags bank of pipes like the image below. Ideally It would require me to select the first pipe which would be a tag with a leader then click the others one by one, tag with no leader with the last one been a different tag (with elevation) then click a spot & it places all the tags in line