A Python library to grab information from DXF drawings - all DXF versions supported.
Project description
dxfgrabber
Abstract
A Python library to grab information from DXF drawings - all DXF versions supported.
Installation
python setup.py install
Documentation
http://dxfgrabber.readthedocs.org
http://pythonhosted.org/dxfgrabber/
Source at bitbucket.org:
http://bitbucket.org/mozman/dxfgrabber
mozman – <mozman@gmx.at>
News
Version 0.7.4 - 2014-05-23
NEW: added support for R12 2d splines (by POLYLINE); POLYLINE.mode == “spline2d”
NEW: TEXT.plain_text(), removes format codes like &&u and transforms %%d to °
BUGFIX: unicode/str error in Cython extension for Python 2.7
BUGFIX: every LWPolyline in DXF version > AC1009 had default thickness of 0.0
BUGFIX: Polyline.width had incorrect values
Version 0.7.3 - 2014-05-16
NEW: options = {"assure_3d_coords": True}, guarantees (x, y, z) tuples for ALL coordinates, this option is by default False
NEW: extended TrueColor() class, see docs
NEW: dxfgrabber.aci_to_true_color(index) returns the DXF default true color value for AutoCAD Color Index index as TrueColor()
NEW: added is_backwards, is_upside_down, width, oblique, font, bigfont attributes to TEXT, ATTRIB, ATTDEF entities
NEW: 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 MTEXT
NEW: added resolve_text_styles(text_styles) method to TEXT, ATTRIB, ATTDEF, MTEXT entities
NEW: new import option “resolve_text_styles” and it is True by default
NEW: added extrusion direction to all entities
NEW: 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 strings
NEW: added n_smooth_density, m_smooth_density, smooth_type to Polymesh
NEW: added smooth_type to Polyface
CHANGE: 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-09
NEW: grabs SAB data of BODY, 3DSOLID, … entities for DXF version AC1027 (R2013) and later
NEW: 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-02
BUGFIX: now really accept floats as int (thanks to ProE)
Version 0.7.0 - 2014-05-01
NEW: support for MESH entity
NEW: support for LIGHT entity
NEW: support for SUN entity
NEW: support for HELIX entity
NEW: support for BODY entity, you get the ACIS code
NEW: support for 3DSOLID entity, you get the ACIS code
NEW: support for REGION entity, you get the ACIS code
NEW: support for SURFACE entity, you get the ACIS code
NEW: support for undocumented PLANESURFACE entity, you get the ACIS code
BUGFIX: accept floats as int (thanks to ProE)
Version 0.6.1 - 2014-04-25
BUGFIX: support for undocumented VERTEX subclass ‘AcDbFaceRecord’ without preceding ‘AcDbVertex’
extended the Polyface entity, see new docs
Version 0.6.0 - 2014-01-09
skip comment tags (999)
dxfversion defaults to ‘AC1009’, if no header variable $ACADVER exists
can open minimalistic DXF12 files (without HEADER, TABLES and BLOCKS section)
added support for STYLE table
added support for LTYPE table
Version 0.5.2 - 2013-05-20
bugfix: fixed *nix newline problem in readfile_as_asc()
Version 0.5.1 - 2013-05-20
updated docs - added a Howto section
added 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.2
Version 0.5.0 - 2013-05-04
beta status
solved problems with ‘utf-8’ and codepage ANSI_936 encoded dxf files
Version 0.4.0 - 2012-08-12
beta status
Version 0.1.0 - 2012-07-21
Initial setup
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dxfgrabber-0.7.4.zip.
File metadata
- Download URL: dxfgrabber-0.7.4.zip
- Upload date:
- Size: 213.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8712cb99557bb4270431db2cf44838161efd69617d80fda15a9432077dbc380
|
|
| MD5 |
6a7dc26bd7d66708dd3bb2487bec7a8b
|
|
| BLAKE2b-256 |
a491ff8a89e48baef8250f85523046c89cefa62198c2723c6faa75db5452a14c
|
File details
Details for the file dxfgrabber-0.7.4.tar.gz.
File metadata
- Download URL: dxfgrabber-0.7.4.tar.gz
- Upload date:
- Size: 175.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72ef01783caee93d66ff65f38e749f7ab96875e8eb0d53a6d4cb240bfc57755c
|
|
| MD5 |
85e7a5bafe513584ff4b2145316882cc
|
|
| BLAKE2b-256 |
d40822cae6f6944b5386133774f28146c02e4f36283bce34236ed11a15de77ad
|
File details
Details for the file dxfgrabber-0.7.4.win32-py3.4.exe.
File metadata
- Download URL: dxfgrabber-0.7.4.win32-py3.4.exe
- Upload date:
- Size: 306.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b41a0ccb6854b0d33fb8f3ca03a0ae9094a4116abd9c038b599609d6e0205f7
|
|
| MD5 |
2a5ce2287fb728a228275a7be4e5165c
|
|
| BLAKE2b-256 |
d9672b5d685fab51fb14fb4bea8fd966358e5f816c2137f1cbf6190e80bb44bd
|
File details
Details for the file dxfgrabber-0.7.4.win32-py2.7.exe.
File metadata
- Download URL: dxfgrabber-0.7.4.win32-py2.7.exe
- Upload date:
- Size: 310.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ca448b79d9598bf9899d65b05c7980a94c2ee814dfbea3e781d1cc25b20d8b1
|
|
| MD5 |
6586c3d4c28b0b27f1771b5c70bf9d50
|
|
| BLAKE2b-256 |
6f4c7c6230e253884b77749dbb05e09435c30532b0dea29f5b426f674c19888e
|
File details
Details for the file dxfgrabber-0.7.4-cp34-none-win32.whl.
File metadata
- Download URL: dxfgrabber-0.7.4-cp34-none-win32.whl
- Upload date:
- Size: 113.0 kB
- Tags: CPython 3.4, Windows x86
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89fb2a0911e422be4b8013bebcf324ab8b7c79226281f72c56e6ed9111894bd4
|
|
| MD5 |
53f8ba9aaa0d0c4a10c751664d3f3403
|
|
| BLAKE2b-256 |
101f1efbc00913e464a5d4df6116075cb7435555acf143e7dea35f1e7a7862cb
|
File details
Details for the file dxfgrabber-0.7.4-cp33-none-win32.whl.
File metadata
- Download URL: dxfgrabber-0.7.4-cp33-none-win32.whl
- Upload date:
- Size: 113.4 kB
- Tags: CPython 3.3, Windows x86
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f541fb92351bafb4b796d9afe24358983df8ef0134d5d02ef378b806b12f21b
|
|
| MD5 |
512e91b26a2216e1002d0fc2472b076d
|
|
| BLAKE2b-256 |
4e88d00c05a623ba9f229c4748090c4eebab14964b21042a6cef716b4ab4e3fc
|
File details
Details for the file dxfgrabber-0.7.4-cp27-none-win32.whl.
File metadata
- Download URL: dxfgrabber-0.7.4-cp27-none-win32.whl
- Upload date:
- Size: 112.5 kB
- Tags: CPython 2.7, Windows x86
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37d0d2d14ce021a7b7ad2d9105216e8bdceae97a1bedb8bb554390d0e335da09
|
|
| MD5 |
993e14b90644d146644d23b77daa04c3
|
|
| BLAKE2b-256 |
33a48f0278850611f34b702ff56394dd5128786896c60ad941994e90e822d01a
|