Package: dxfgrabber
WARNINGThis is an outdated python package, please switch toezdxf:https://pypi.org/project/ezdxf/Advantage ofezdxfoverdxfgrabberis read/write support for DXF versions:R12R2000R2004R2007R2010R2013R2018Documentationhttp://dxfgrabber.readthedocs.ioSource at GitHub.com:https://github.com/mozman/dxfgrabber.gitContactdxfgrabber@mozman.atNewsVersion 1.0.1 - 2020-01-01WARNING: OUTDATED PACKAGE - switch toezdxf:https://pypi.org/project/ezdxf/Version 1.0.0 - 2018-01-01entering just maintenance and bugfix mode - no new features plannedVersion 0.8.4 - 2017-02-19dxfgrabber can read DXF files with only an ENTITIES sectionVersion 0.8.3 - 2017-02-06BUGFIX: handles windows line ending ‘rn’ in streams correct, some streams do not produce universal line endingsVersion 0.8.2 - 2017-01-22BUGFIX: TEXT font resolving issueMoved to GitHub.com:https://github.com/mozman/dxfgrabber.gitVersion 0.8.1 - 2016-08-17BUGFIX: restored VERTEX bulge valuesNEW: excepts ‘inf.0’ and ‘-inf.0’ float values created by QGIS (AutoCAD does not read this none standard values)Version 0.8.0 - 2016-04-24internal refactoring - removed extra layer for DXF R12 and DXF R13 implementationremoved parts implemented in Cythonnew version is ~30% faster than the old pure Python version but ~15% slower than the version with C-extensionsome pep8 refactorings, renamed attributes like startparam to start_paramVersion 0.7.5 - 2015-11-29Python only version runs with CPython (2.7, 3.4, 3.5), pypy-5.0.0 and pypy3-2.4.0accepts block definitions without explicit base point, defaults to (0, 0, 0)NEW: reads DXF versions older than AC1009 (DXF R12), as far I know, I need more old files for testingKNOWN BUG: Win7 and Python 2.7.10 - can’t build Cython extension with MingW32, use Python 2.7.9 insteadKNOWN BUG: Win7 and Python 3.5.0 - can’t build Cython extension with MingW32 but work with VC2015Version 0.7.4 - 2014-05-23NEW: added support for R12 2d splines (by POLYLINE); POLYLINE.mode == “spline2d”NEW: TEXT.plain_text(), removes format codes like&&uand transforms%%dtoÂ°BUGFIX: unicode/str error in Cython extension for Python 2.7BUGFIX: every LWPolyline in DXF version > AC1009 had default thickness of 0.0BUGFIX: Polyline.width had incorrect valuesVersion 0.7.3 - 2014-05-16NEW:options = {"assure_3d_coords": True}, guarantees (x, y, z) tuples for ALL coordinates, this option is by defaultFalseNEW: extended TrueColor() class, see docsNEW: dxfgrabber.aci_to_true_color(index) returns the DXF default true color value for AutoCAD Color Indexindexas TrueColor()NEW: added is_backwards, is_upside_down, width, oblique, font, bigfont attributes to TEXT, ATTRIB, ATTDEF entitiesNEW: added plain_text() method to TEXT, ATTRIB and ATTDEF to get text content without formatting codes like ‘%%u’NEW: added font, bigfont, rect_width, horizontal_width and vertical_height attributes to MTEXTNEW: added resolve_text_styles(text_styles) method to TEXT, ATTRIB, ATTDEF, MTEXT entitiesNEW: new import option “resolve_text_styles” and it isTrueby defaultNEW: added extrusion direction to all entitiesNEW: added row_count, col_count, row_spacing, col_spacing attributes to INSERT.NEW: MText.plain_text(split=False) tries to remove format codes, returns a single string or a list of stringsNEW: added n_smooth_density, m_smooth_density, smooth_type to PolymeshNEW: added smooth_type to PolyfaceCHANGE: LWPolyline again: LWPolyline.points list of (x, y) or (x, y, z) depends on “assure_3d_coords”,
LWPolyline.width list of (start-width, end-width), .bulge list of floats, removed LWPolyline.get_rstrip_points() and
added .const_width attribute (if != 0, ignore .width list).CHANGE: Polyline method points() is now a field (list) and added lists for width and bulge for consistent APIs of
LWPolyline and Polyline.BUGFIX: wrong DXF subclass for Arc.extrusion (error in DXF Standard)Version 0.7.2 - 2014-05-09NEW: grabs SAB data of BODY, 3DSOLID, … entities for DXF version AC1027 (R2013) and laterNEW: support for dxf attributes: true_color (AC1018), transparency (AC1018), shadow_mode (AC1021)
in prior DXF versions this attributes are set to None.NEW: using Cython for some speed optimizations, but Cython is not a installation requirement; control the Cython
extension by environment variable DXFGRABBER_CYTHON = ON|OFF, by default the Cython extension is activated.CHANGED: LWPolyline.points are always 5-tuples (x, y, start_width, end_width, bulge)Version 0.7.1 - 2014-05-02BUGFIX: now really accept floats as int (thanks to ProE)Version 0.7.0 - 2014-05-01NEW: support for MESH entityNEW: support for LIGHT entityNEW: support for SUN entityNEW: support for HELIX entityNEW: support for BODY entity, you get the ACIS codeNEW: support for 3DSOLID entity, you get the ACIS codeNEW: support for REGION entity, you get the ACIS codeNEW: support for SURFACE entity, you get the ACIS codeNEW: support for undocumented PLANESURFACE entity, you get the ACIS codeBUGFIX: accept floats as int (thanks to ProE)Version 0.6.1 - 2014-04-25BUGFIX: support for undocumented VERTEX subclass ‘AcDbFaceRecord’ without preceding ‘AcDbVertex’extended the Polyface entity, see new docsVersion 0.6.0 - 2014-01-09skip comment tags (999)dxfversion defaults to ‘AC1009’, if no header variable $ACADVER existscan open minimalistic DXF12 files (without HEADER, TABLES and BLOCKS section)added support for STYLE tableadded support for LTYPE tableVersion 0.5.2 - 2013-05-20bugfix: fixed *nix newline problem in readfile_as_asc()Version 0.5.1 - 2013-05-20updated docs - added aHowtosectionadded attribute frozen to class Layer()index operator for: Drawing.layers[layername]added modelspace() and paperspace() iterators to class Drawing()supported Python versions: CPython 2.7, CPython 3.3, pypy - no explicit testing with CPython 3.2Version 0.5.0 - 2013-05-04beta statussolved problems with ‘utf-8’ and codepage ANSI_936 encoded dxf filesVersion 0.4.0 - 2012-08-12beta statusVersion 0.1.0 - 2012-07-21Initial setup