Rename Material name

Hi there! I’m having an issue with this script. I’m trying to rename the “Name” of multilple materials repleacing all the materials which start with “BB_”. It appears it doesn’t work because I inserted String instead of Revit Elements. Does anyone know how to convert String to Elements? otherwise i cannot filter the materials. Thanks a lot

Hi @vise92,

Duplicate the List.FilterByBoolMask and connect the All Elements of Category node to the input List of the second List.FilterByBoolMask.
And then the In output to the element input of the SetParameter node.

Hi @Alban_de_Chasteigner ,

thanks for the reply, but I can’t understand what you’re meaning.
If I did as you mentioned, the script would be like this screenshot.
It actually doesn’t change anything.
Thanks a lot

You missed the mask input (the output of the String.StartWith)

1 Like

Thank you very much for helping!
I was able to solve the problem. Meanwhile, the “read-only parameter” problem had arisen.
I solved it like this.

It works ! well done