I have c code that arranges dims like that, but it just outputs the coordinates (intro to programming project
). If you know c you could work on it drawing the final result.
It works just like you stated, arranging rectangles symmetricly inside a larger rectangle. If you want the code, let me know. If I don't answer within a day or so, just PM me.