Replies: 1 comment
-
This entity is inside a block: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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
Beta Was this translation helpful? Give feedback.
All reactions