Released first beta of ezdxf v0.11.2:
https://pypi.org/project/ezdxf/0.11.2b0/
Experimental feature exploding block references and examining virtual entities from block references.
Exploding uniform scaled block references (INSERT entity) should work for simple entities:
The 'exploded' entities are located in the same layout as the block reference, but could
be a different layout or block.
Examining virtual entities of block references let you iterate through the entities of a block reference
without exploding the block reference:
for entity in blockref.virtual_entities():
...
This virtual entities are not stored in the entity database and they are not assigned to any layout.
Limitations:
As always ACIS entities are not supported, also entities which require a graphic representation
as anonymous block (DIMENSION, MLEADER) are not supported, they will disappear after
exploding the block reference.
Non uniform scaled block references are a big problem and I don't know if I ever will solve this problems.
Text entities like TEXT, MTEXT and ATTRIB do not look like the result from BricsCAD. ELLIPSE
requires an axis transformation. HATCH entities with arc or ellipse paths are not handled correct
also POLYLINE and LWPOLYLINE entities with arc segments (bulge).
Multi-INSERT by row and column attribute is not supported yet.