-
I'm using python 3.6 and ezdxf 0.15.1 processing a DXF file generated by UG NX 12.0 under windows 7 and windows 10. I tried to delete all LINE objects, with code for entity in msp: Then with print, I found out that some objects are still LINEs. I wouldn't have noticed this if doc.save() had not raised the exception "AttributeError: 'Line' object has no attribute 'dxf' " Why did this happen? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Most likely, the model space contains block references (INSERT) that contain LINE entities. PS: upgrade your Python version, the next ezdxf version requires at least Python 3.7 |
Beta Was this translation helpful? Give feedback.
Most likely, the model space contains block references (INSERT) that contain LINE entities.
PS: upgrade your Python version, the next ezdxf version requires at least Python 3.7