Hi, I´m trying to sum a list of parameters ( widht) that I have obtained from " GetParameterValueByName(TypeOrInstance)", but when I use “Math.sum” it says Warning: asked to convert non-convertible types.
Please help!
Are any values ‘null’ or blank?
Thanks for your reply,
No, there isn´t any nulls or blanks, because i just clean up the list from them.
You removed null elements, but not null parameter values. Try adding another list.clean after the get prametervaluebyname node.
1 Like
Perfect!
I checked the parameters list and there were some items in 0 or in blank, so I went to Revit to localize those families by ID. I realized that there were some " hole" doors that had RoughWitdth parameter instead of WIDTH parameter, so I replaced the name of the parameter and dynamo recognized it perfectly and did the sum!
Thanks a lot!
1 Like
Good news. Please mark the solution so that others can use this to help themselves in the future.
1 Like