Center A point and A grid of points on a face

Hi,
First the credit of this script goes to @sovitek. I am modifying it for spaces.
So I am having some troubles.
1- Would like to center that point on my face of the space.
2- My fixture is looking up, if I’d like the fixture look down or get that face wich facing down inside the space, I have tried modify Z value and rotate the family face based but, it’s not working proprely.
Thanks.




ImplentationdeLuminaire14Spaces.dyn (63.9 KB)