Element String error

It could be that I am trying to look at this on a Sunday morning, but I am trying to make a script that will append the Sheet number to the drafting view name. I keep getting an error "Warning: Element.GetParameterValueByName expects argument types(s) (Element,string), but was called with (string,string)

Just having a hard time fixing this somewhat simple error

TBA add name to drafting view.dyn (23.3 KB)
DYN attached

Revit 2018 with Dynamo 2.0.2

Hi @Tom_Kunsman,

You are calling GetparameterByName on a string consisting of Name and number.
As you probably already know, it needs an element as input. Must be a Sunday morning thing :slightly_smiling_face:

Filter the elements, not the values.

Note for the ‘setting‘ portion you will need to filter both the elements and the values.

1 Like