Select elements i revit

Hey.

I want to run a script where the result is a selection of elements in revit it self. Like in this picture.
is that in anyway possible??

Thanks
Nichlas

Select in Revit is in the Hotgear package, there might be others too