Skip to main content

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.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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

dxfgrabber-0.7.3.zip (210.1 kB view details)

Uploaded Source

dxfgrabber-0.7.3.tar.gz (172.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dxfgrabber-0.7.3.win32-py3.4.exe (305.4 kB view details)

Uploaded Source

File details

Details for the file dxfgrabber-0.7.3.zip.

File metadata

  • Download URL: dxfgrabber-0.7.3.zip
  • Upload date:
  • Size: 210.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for dxfgrabber-0.7.3.zip
Algorithm Hash digest
SHA256 dcdd9c42e0eb822af61184a6671804266b3413d4f2fad77b9e3c09a6ce99c752
MD5 42514755ae072fb7861e7952cf560f22
BLAKE2b-256 5fcb923a49be3312fda8fb101deb55081f148da8c618a48a03bf3ceb4474aab1

See more details on using hashes here.

File details

Details for the file dxfgrabber-0.7.3.tar.gz.

File metadata

  • Download URL: dxfgrabber-0.7.3.tar.gz
  • Upload date:
  • Size: 172.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for dxfgrabber-0.7.3.tar.gz
Algorithm Hash digest
SHA256 d4c9e5ecc1d6b5da63f77be88f00591f4f49ba9f6d2997197ddc3e41db333741
MD5 0cec3f39fb5012145a463584f6d8e0f9
BLAKE2b-256 525ecd77512f7794c54c9fed6f4db1acb28274a5cb2ea5f4593c5b7ca41b76b2

See more details on using hashes here.

File details

Details for the file dxfgrabber-0.7.3.win32-py3.4.exe.

File metadata

File hashes

Hashes for dxfgrabber-0.7.3.win32-py3.4.exe
Algorithm Hash digest
SHA256 2a2d10a3f628d50730635fc13f3f6903bfd920953e3dbb6e3bf8734bff7ecdb4
MD5 ebee730bc698db13a326c234d9db32ef
BLAKE2b-256 c5a297866c43f9ea52b42bb0e6203cec616350409bdcf15f7a656a6f0b7d1768

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page