Import/Export Excel to swap Revit Families by name and type

Hello,

Is it possible to get family and type element from a string name?

See pink group…

I have taken a really round about way, collecting the Family By Name, then all the Types from that family, then using string from object to filter out any true matches with the excel import, which I’ve had to add family and family type to to make it match… . :zzz:

Is there a better/more reliable way?

methodology follows this post:

Despite the errors in my script this method works well.

Thanks in advance.