Hi everyone,

I am trying to create a sketch which will serve as a diagram for possible ways to build on a site within given legal parameters. The parameters are maximum area for foot print and proximity to the boundary…for now (more legal restrictions to be tackled later).

I have made a start, and have got quite close.

My main question is how to randomly create a rectangle whose area is a set number and sides are no greater than a set number. Currently I am generating one random number within a domain (0 to max allowed) side x, and then dividing the known area to find side y.

This gives me many possible solutions, however, side y is not restricted and can therefore extend beyond the site boundary. To correct this I used a stream gate to disallow values which are too big. I’m sure however that there must be a better way.

I tried making the domain for generating the first number limited at both ends, this does seem to work but I can’t derive the formula for that starting number.

site analysis_Rev A.gh (19.3 KB)

Any suggestions will be gratefully received