Keynote and python weirdness

Hi everyone,
I posted this issue a while ago, and didn’t get any attention… I resumed it back, did a couple test, and here I am again…

This definition is meant to extract the keynote description from a txt file and pull it into the “description” field of type… I don’t get why in some project seems like working, on other I get this error “Warning: Converting an array to var would cause array rank reduction and is not permitted” …

Somebody has a clue on it? It’s annoying since it seems like working for some categories and not others…
I even tried with a more complex keynote file, i actually got a memory problem within the python script… have you ever experienced that?

Thanks for all your suggestions!

The array rank reduction error is due to your script trying to write an Empty List to a string parameter value. You need to set up a filter before the Element.SetParameterByName node using List.IsEmpty and List.FilterByBoolMask to remove the elements/values that are empty lists (do not have a keynote value assigned)

I found your .dyn file on your previous post and I’ll assume this post of yours is also the same topic - it is best not to create duplicate posts seeking the same solution; if you haven’t received feedback on something then add more information to the initial post instead, i.e. upload a sample Revit and Keynote file that contains families that are causing errors. Adding more to your previous posts would bump them back up in the forum’s feed as well as give other people more information to help you with.

2 Likes

Hi awilliams,
sorry if I posted this twice, I thought to repost it again since almost a month passed… I made it with your advice, thanks again!

Dear Carmine, could you share the final file if it’s work correctly
Thanks