Collect line based detail item families

Hi, is it possible to collect all line based detail items in the Revit project? I’m trying to find a way to collect a list of them to be selected in a drop down box for the DetailComponent.ByCurve.