Exporting Top-level Blocks (containing nested blocks) to multiple CSVs

I have a rhino file consisting of 200 top level blocks with nested blocks (different types of kitchen cabinets to be more specific). What I want is to create a CSV from each of these top level blocks.

At the moment I’m exporting each Top level Block to an isolated rhino file > opening it and creating a CSV from the isolated file. Seems like a waste of time.

Does anyone know about a script or plugin that makes this possible?

Oline