Daylight Factor Calculation Issue

As part of my graduation project, I have been developing a tool that calculates the daylight factor based on a Revit model. The script has been configured to calculate the daylight factor for multiple rooms by selecting the “Rooms” option in Revit. This feature enables the creation of geometry for all the rooms.

However, I have encountered some issues during the process. Specifically, when defining the glass surface, the window frame, and moving the glass surface, some points seem to be grouped together incorrectly.

I would greatly appreciate it if someone could review the script and assist me in resolving this issue. For reference, I have already set up two rooms in the Revit model.


2024416_DaylightfactorScript_V10.gh (77.1 KB)
20240412_ModelV5_V01.rvt (5.5 MB)