Rename Family Error

Hi Team,

Would like to have a solution in renaming the multiple Revit families using dynamo I have created the script and it’s running successfully and change the name but it’s shuffling the Revit families from each other names are changing but its shuffle to each other eg: if it is M_sprinkler and I am changing in P_Sprinkler its change but inside the elements are different. please help me with the script.

Thanks.

what is the error you get?

I am not getting any error it runs completely successful but it changes the inside elements to one another for eg my family is M_Sprinkler I want to rename it in F_Sprinkler then after run its name is changed but when you open the family to edit its not the sprinkler it is a different family.

Try like this.

Home.dyn (21.5 KB)