Erase invalid characters from string

Hello,

I’m attempting to build family types based off of input form an excel sheet. In some cases, this input contains invalid characters that Revit will not allow as a type name. Is there a way to clear out those invalid characters from a string without needing to change the source data?

image

A series of String.Replace nodes should do the trick.

1 Like

Hello, the GeniusLoci pack has a node that does this

Node: GeniusLoci_Remove Special Characters from string

Cordially
christian.stan

3 Likes