Filled Regions always get messy, duplicated, etc. I am trying to create a cleanup script, where I select the unwanted type and replace it with another one.
Already made a successful script to merge line unwanted types, it uses the name parameter to grab and replace the line types. Tried to do the same with filled regions and it turns out to be a little different Revit-wise as there is a higher level “type” of filled regions, either “detail” and “masking”.
If I try to extract family type names I get either “Detail Filled Region” or “Masking Region” as values.
So, I made it through seeing the -real- filled region names, filtered the “masked” regions, managed to isolate the duplicated type and I can see the element parameters.
Even though I can see it, I can’t get Dynamo to recognize the “Type Name” parameter name to make the switch!! In the marked code block I tried “Name”, “Type”, “Type Name”, “TypeName”, etc… I’m out of ideas what this parameter’s real name is.
If there is another way to replace an element other than Element.SetParametersByName I’m all ears.
Any ideas?
Thank you beforehand!