Array Rectangle Within a Boundary

Hi!
Welcome to this forum!

If you have not already read this: How to ask effective questions , please do it.

Can you please attach your grasshopper definition?
Attach also the rhino file if needed or “internalize” (right-click on input parameters) the geometries needed for your problem.
It’s easier to help and to get help if geometries and gh definitions related to the problem are shared…