Arrange a particular shape with different scales in a boundary

Hello, it could be doable, best with programmation (C# …), but too specific. It is a forum so it is the good willing of people to help or not. On this subject it seems there are plenty of topics that can help you ;

To my understanding you could do that. Model the place taken by your shape in pixels, like that
image
As there are more than 2 sizes for you shapes make bigger shapes with more pixel.
And use the same logic as in this C#
https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/1/9/19f048c0a74f19c2203eca74547b1f3e785f6e6f.gh