Python interface for AutoCAD DXF
Project description
dxface
Python interface for AutoCAD DXF.
Installation
Using pip:
$ pip install dxface
Supported Objects
The following DXF graphical objects are supported:
- POLYLINE
- LWPOLYLINE
- CIRCLE
- ARC
- LINE
Usage
Import the Entities object.
from dxface import Entities
Create instance of Entities from DXF file.
with open('drawing.dxf', 'r') as f:
dxf = f.read().splitlines()
entities = Entities(dxf)
Convert to SVG.
svg = entities.svg()
with open('drawing.svg', 'w') as f:
f.write(svg)
Access sublists containing DXF graphical objects
polylines = entities.polylines
lwpolylines = entities.lwpolylines
circles = entities.circles
arcs = entities.arcs
lines = entities.lines
UML diagram of Entities object
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dxface-0.0.6.tar.gz
(5.0 kB
view details)
Built Distribution
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
dxface-0.0.6-py3-none-any.whl
(12.3 kB
view details)
File details
Details for the file dxface-0.0.6.tar.gz.
File metadata
- Download URL: dxface-0.0.6.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.5.0.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
844528da7b238a53b073a3bf40b7a2af7ad12dba7c994f43abb37360e377d57d
|
|
| MD5 |
45440c83b20a5fcc458624203cede27c
|
|
| BLAKE2b-256 |
0233921b358ab3c9b765190ed523c632ef84cb977b6d95fcc456611b20a1bc6c
|
File details
Details for the file dxface-0.0.6-py3-none-any.whl.
File metadata
- Download URL: dxface-0.0.6-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.5.0.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8cc6a80108980efd258ccfd9181191d6cdd77a4fded82374e7ce3c062e293861
|
|
| MD5 |
e5969e65c8e27c975f736b839091c215
|
|
| BLAKE2b-256 |
eab77610e0b6b74ac51b93654548bc9761cb0a8d80e1d345a47e9f5e498dde34
|