I have trouble with a script that should rename floors containing “FF” to “TL”. The script actually runs without errors, but it doesn’t seem to be making any changes in the Revit file.
I’ve attached a simple Revit file and the Dynamo script I’m usin
Would anyone be willing to take a quick look and see if they can spot what I’m missing?
Can’t quite see exactly what’s going on without seeing the node titles and the node preview bubbles, but it does look like you’re filtering your elements and then assigning values back to the original list rather than the filtered one. That’s where I’d start.
I’m not quite understand your aim. What do you mean under “rename”? Do you want to change Family type name, or Mark, or what exacly? You can’t basicly rename floor instance, because it doesn’t have “Name” property.
Your issue is you are trying to rename floors by selecting instances of the floors with the category nodes. You need to work with floor “types” (or “classes” in later versions).
You need first to define whith what you want to work in script - with family instances/elements or with family types. If these are family instances/elements, it is more common to work with Categories.
If you’re working with system categories (walls,floors,ceilings,roofs,ducts,pipes, railings etc), the only way to collect it’s family types, it through Element Classes.
Also, Element Classes contain a lot of specific elements like parameters, print settings, line types, materials etc