Workspace Layout: windows issue

Hello everyone! I’m struggling with the Workspace Layout used for the Generative Design:
The first issue: is that Room.Windows isn’t working in the script (Empty List)
the second issue: I replaced the node inside the script with Tool.getSurroundingElements, inside the graph in dynamo, I can see it working, but when using it in Generative design, it looks like windows are again not detected :confused: (Number 1 in the picture)
Also, there is Line.Direction node that isn’t connected to any other node! (number 2 in the picture)
I hope someone can help me with this!
I use: Revit 2022
Dynamo: 2.10.1