SDXF 1.0 - Stani's DXF Library for Python

S

s_t_a_n_i

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&downloads: http://www.stani.be/python/sdxf
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,052
Latest member
LucyCarper

Latest Threads

Top