Selecting elements in sequence in Revit while drawing a line

I want to select elements(Pile Caps) in Revit in sequence. I want to draw a line over the elements to select them so that i get a desired sequence of Pile Cap. How can I achieve this?

Hi @pics.munmun you could start here.
Cheers KS