Call Wall Types from String

I have a list of strings defining wall types:
“Generic - 150mm”
“Generic - 150mm”
“Generic - 220mm” etc.
Is there a way of correlating them with the existing Wall Types available within the document and passing that into a Wall.ByCurveAndLocation node.

Hi there! Personally, I like to use dictionaries for this.

For your example your list (dashed line) would go into the key input of the “value at key” node


You can use Element.Name Node to get the wall types names as string.

Thanks for getting back so quickly, it works perfectly thank you !!!

1 Like