Sorry if this has already been covered elsewhere - I have tried to find a post with the same problem we’re facing here but couldn’t. We’re using this script to try and rename our families so they’re Uniclass2015 compliant.
We’ve successfully changed names for most of the families including system families such as basic walls. But no joy when it came to wall sweeps. All elements appeared as “wall sweep” and after introducing element.name we could actually see the different names. Even the script seems to run till the end, there’s no success in actually changing the name of the elements.
Any help would be greatly appreciated!