Convert circles into blocks

Hello everybody,
I have over 2000 circles in my Rhino file and I would like to replace each by the same block.
Unfortunately, I do not know how that - more or less automatically - works. Is there a possibility?

circles.3dm (1.2 MB)

Thanks for the help!!

This would be doable with Grasshopper and the Human plug-in, or you could script up something custom. Here’s my grasshopper based approach: (61.9 KB)

And here’s the resulting file with the circles replaced by blocks:
circles.3dm (1.0 MB)

This is certainly possible with a script - but the question is, as all the circles appear to be the same diameter (4), do you want them replaced with 2,595 copies of the same block, or 2,595 different blocks? (I assume the first, but I thought I’d ask…)


@Helvetosaur yes the first option

@andheum yeah thank you so much!!! that is, what i were searching for =)