Polygon.ByPoints operation failed

Curtain_Panel_Folding.rfa (308 KB)
rotating_sun-script.dyn (30.1 KB)

https://www.youtube.com/watch?v=odgFpKVmdhM

Hi everybody,
I’m Davide, a student from Politecnico di Milano.
I’m trying to do a kinetic facade (following the linked tutorial) with these rotating panels wich follow the sun. The problem is that when I connect Dynamo with Revit and I select the family I have this error message:

Warning: Polygon.ByPoints operation failed.
You must supply more than 2 points to create a polygon : –

…and I don’t understand how to overcome :sweat:
Thank you in advance!

well…just read https://en.wikipedia.org/wiki/Polygon