Rectangle into Circle attracted by Line

Hi there!
I am new to Grasshopper and working on a University Project.
I used a Circle Packing definition on a surface (this is the floor plan of a flat) to fill it with different sized circles.
Now I have about 50 rectangular curves in the rhino file (this is the furniture) and I want them to be placed inside of the circle witch fits best to the size of the rectangle, like so:

circle rectangle

If a rectangle is to big it would be nice if more circles get combined to fit this rectangle.
When all the rectangles are placed I want them to be attracted by the polyline.

The final result should be that someone can go along the line by walking on the furniture.

I hope this does not sound to confusing and I am thankful for all the help I can get.

greetings
flo

171228_CurvesOnCirclesAttraction_small.3dm (120.7 KB)
171228_CurvesOnCirclesAttraction.gh (12.0 KB)