How to select only duct

I need to add duct part if length and size is same for prafab purpose. . If any changes in duct system i have to renumber once again .

I would like to with revit and excel integration for that i have to select only ducts.

Is it possible to do this using python !

thanks in advance.

Duct part no