Sun angle to surface normal analysis

What I did so far in Revit: I’ve created a mass family with the tent -> divided surface -> placed a umbrella family with 4 adaptive points -> array

In Dynamo the list of the node “AdaptiveComponent.Locations” is empty. I don’t know why. The script should analyze the angle between the sun and the normal vectors of the panels. And depending of the angle adjusting the “Light_permission” parameter, which opens or close the umbrella. Inspiration comes from Jeremy Roh’s videos =)

Thank you for your time and help :slight_smile:

sry, I made a restart and now it works :smiley: