Python library to generate DXF drawing files (CAD)
Project description
SDXF is a Python library to generate DXF files. DXF is an abbreviation of Data Exchange File, a vector graphics file format. It is supported by virtually all CAD products (such as AutoCAD, Blender, 3Dstudio, Maya,Vectorworks…) and vector drawing programs (such as Illustrator, Flash, …).
SDXF can generate complex CAD drawings (dxf format) with all kind of entities (such as 3DFace, Arc, Insert, Circle, Line, Mtext, Point, Polyline, Rectangle (can be filled), Solid & Text). They can be structured with Layers, Blocks, Linetypes, Text styles and Views.
Example
import sdxf
d=sdxf.Drawing()
d.append(sdxf.Text(‘Hello World!’,point=(3,0,1)))
d.append(sdxf.Line(points=[(0,0,0),(1,1,1)]))
d.saveas(‘hello_world.dxf’)
For more info: http://dxf.stani.be http://jonschull.blogspot.com/2008/12/kellbot-sdxf-python-library-for-dxf.html
NOTE: This exists because of defun. http://pypi.python.org/pypi/SDXF
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 Distribution
File details
Details for the file dxf-1.1.1.tar.gz
.
File metadata
- Download URL: dxf-1.1.1.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c27d6f036a56a5be7e1fb6870087e90ca16efe1104ce80d745065fee62b18a70 |
|
MD5 | 988ede6868dd54380ac8d734cfdd56ea |
|
BLAKE2b-256 | 4376434a6def5d17de785941a0b3775f3c5afd7e79d9dea2a973bd47fbf2e75e |