I want to parse and group all entities inside a dxf file by BLOCK and then print each BLOCK's name with the entities that make up that block underneath. Is there a way to do this using the ezdxf library (maybe the groupby() function) ? Entities that do not make up a block don't need to be grouped nor printed.
I've tried using the groupby() function but didn't find a way to group by BLOCKS
Please read the docs: https://ezdxf.readthedocs.io/en/stable/