Hi!
I want to export elements with specific parameters to Excel. However, when none of these elements have the “Optie_Kraan” parameter filled in, I get a null result in FamilyType.Family, causing an error when pushing the result to my List.Create when I get only Null as result with no list. (See image 1)
In image 2, I change 1 element and filled the parameter “Optie_kraan” . Then I get a list with 4 elements back in FamilyType.Family and then everything works perfect!
Maybe to resolve this issue, I can use an “If” node. If all the elements have a null result, I will use Element.GetParameterValueByName to my List.Create (Because when its empty, I still get 4 elements there(see image 1)). If the result is False and one or more elements have a value, I will push the FamilyType.Family to my List.Create instead.
I try some things but seems it doesn’t work… Someone have a simple solution for this?
Thanks!