Const

The module ezdxf.lldxf.const, is also accessible from the ezdxf namespace:

from ezdxf.lldxf.const import DXF12
import ezdxf

print(DXF12)
print(ezdxf.const.DXF12)

DXF Version Strings

Name

Version

Alias

DXF9

“AC1004”

“R9”

DXF10

“AC1006”

“R10”

DXF12

“AC1009”

“R12”

DXF13

“AC1012”

“R13”

DXF14

“AC1014”

“R14”

DXF2000

“AC1015”

“R2000”

DXF2004

“AC1018”

“R2004”

DXF2007

“AC1021”

“R2007”

DXF2010

“AC1024”

“R2010”

DXF2013

“AC1027”

“R2013”

DXF2018

“AC1032”

“R2018”

Exceptions

class ezdxf.lldxf.const.DXFError

Base exception for all ezdxf exceptions.

class ezdxf.lldxf.const.DXFStructureError(DXFError)
class ezdxf.lldxf.const.DXFVersionError(DXFError)

Errors related to features not supported by the chosen DXF Version

class ezdxf.lldxf.const.DXFValueError(DXFError)
class ezdxf.lldxf.const.DXFInvalidLineType(DXFValueError)
class ezdxf.lldxf.const.DXFBlockInUseError(DXFValueError)
class ezdxf.lldxf.const.DXFKeyError(DXFError)
class ezdxf.lldxf.const.DXFUndefinedBlockError(DXFKeyError)
class ezdxf.lldxf.const.DXFAttributeError(DXFError)
class ezdxf.lldxf.const.DXFIndexError(DXFError)
class ezdxf.lldxf.const.DXFTypeError(DXFError)
class ezdxf.lldxf.const.DXFTableEntryError(DXFValueError)