Add suffix to Area name

Adding suffix to area name. Does not really work out for me.
I want to add the preffix “_BS” (not a swearword in this case) to all area names beginning with “B1”
change suffix.dyn (19.6 KB)

Hi, even if it seems very implicit to you, you get a string of characters that you manipulate to achieve your ends, you must now send the name to the elements explicitly (the node should do the trick)

cordially
christian.stan

Keep in mind you’ve filtered your names so you also have to filter the elements before you write the new names back to them.

Alternatively, you could update all the names (conditionally) so you don’t have to deal with the filter.

1 Like

As a beginner myself, I have found that Element.Name is no good to work with changing View Names, Sheet Names and so on. @christian.stan filtered it the way it worked so far for me, which is getting through the Element.GetParameterValueByName instead.

1 Like