Create a script for placing skylights based on roof tile size

I would like to write a script for placing/moving skylights based on pan size. In construction, these skylights are plotted based on the size of the roof tile (tile size). However, I can’t get this done and can’t find a suitable example either.

Maybe you can share what you have tried so far?

Hello @b.vrenken , not sure probably something here, best you show what you have tried so far as Joe mention as well…but try as here could probably be a start