I need to change the name of a block, that was created in modelspace.
Can I do any operations to rename it?
I tried to use: doc = ezdxf.readfile('newnew.dxf')
- Rename insert in modelspace: for block in msp.query('INSERT[name == "test_name"]'): block.dxf.name = 'new_name'
- Rename insert in blocks entities: for block in doc.blocks: if block.dxf.name == "test_name": block.dxf.name = 'new_name'
I created script, that can change name(find in 'newnew.dxf' and replace), but I want to do it in ezxdf.