Cannot extract some entities when traverse in msp
En0427 opened this issue · comments
When I was traversing the entities in msp, some entities were not extracted. In my dxf file, these entities in the following image belong to the layer of "00-备注信息不打印".
But when I ran the following code, there was no result. May I ask how to solve it.
doc = ezdxf.readfile('test.dxf') msp = doc.modelspace() for entity in msp: if entity.dxf.layer == '00-备注信息不打印图层': print(entity.dxftype())
I checked the layer table and the status of the layer, and the return seems to be fine
`layers = doc.tables.layers.entries.keys()
print(layers)
my = doc.layers.get('00-备注信息不打印图层')
print(my.is_on())
print(my.dxf.name)
print(my.dxf.plot)`
This is the relevant file and code:
ralated file.zip