Dear and amazing Dynamo community,
yet again I am getting frustrated on a problem that I am sure is easy to solve…
How am I supposed to filter through Elements when their parameter values are other ElementTypes?
Any help is deeply appreciated, let your karma be positively charged!
Greetings,
Vicky
hello, i tried something like this
Edit:
More
x.Id==6095695; Bad
Edit 2:
it’s definitely not my day
Cordially
christian.stan
I can’t remember exactly, but I think I had the same issue with that GetParameterValueByName node also. If you have rhythm package installed, try using the GetParameterValueByName(TypeOrInstance) node instead. Doesn’t readily solve the issue, but could be a work around.
It would help to see what you are passing to the GetParameterValueByName
Also if you want to filter with the ID you will need to pass the same kind of data type.
1 Like
The word “6095695”
is different from the number 6095695
is different than the 6095695th item in the Revit database.
Place an Element.Id node after the GetParameterValueByName node, and make sure your equality test is for the same data type (I believe an integer, not a string).
2 Likes