- NEW: Support for complex line types with text or shapes
- NEW: DXF file structure validator at SECTION level, tags outside of sections will be removed
- NEW: Basic read support for DIMENSION
- CHANGE: improved exception management, in the future ezdxf should only raise exceptions inherited from DXFError for
- DXF related errors, previous exception classes still work
- speedup low level tag reader around 5%, and speedup tag compiler around 5%
DXFError() Based Exceptions:
- DXFStructureError(DXFError)
- DXFInternalEzdxfError(DXFError)
- DXFEncodingError(DXFError)
- DXFDecodingError(DXFError)
- DXFAppDataError(DXFStructureError)
- DXFValueError(DXFError, ValueError)
- DXFKeyError(DXFError, KeyError)
- DXFAttributeError(DXFError, AttributeError)
- DXFIndexError(DXFError, IndexError)
- DXFTypeError(DXFError, TypeError)
- DXFInvalidLayerName(DXFValueError)
- DXFTableEntryError(DXFValueError)
The intended usage is:
try:
dwg = ezdxf.readfile('name.dxf')
except (IOError, FileNotFoundError):
# file related error handling
except DXFError:
# DXF parsing errors