Boxes and grids

hi.
i made a boundary at 6’ from all the edges of a building in all floors is it possible to divide the area highlighted (red and yellow) into equal sized boxes(grids) and get coordinates at the intersecting points.


image

boxes like this
image

if possible then how?

sharing script for reference.
FINAL EDGES…dyn (74.4 KB)

thankyou.