Roland's homepage

My random knot in the Web

dxftools

Introduction

The purpose of the ‘dxfgerber’ program is to generate optimized DXF files for processing on a Gerber cutting machine. The software for this cutter is apparently not very intelligent and doesn’t seem able to sort line and arc entities in a DXF file in a relevant order.

This software does two things;
  • Look for lines and arcs that fit end-to-end (contours) and write them out in the correct order.
  • Sort contours, remaining lines and arc in ascending order of their bounding box, sorting first on the y-coordinate, then on the x-coordinate.

There is also a related program that generates nc code for the Gerber cutter directly. This has not been tested yet.

Download

The latest version:

source:dxftools-1.1.zip
GPG signature:
——-BEGIN PGP SIGNATURE——-
Version: GnuPG v2.0.22 (FreeBSD)

iQIcBAABAgAGBQJTEzadAAoJEED21dyjijPgtPQP/2t4NSqRss7NXFwzM0ZBQMIZ
fFiPiI9DrDKPKdS6Fod2WioCPw1+l1+crAf4VWRfipELjOMuidWw4Eq1I141XYbB
+B53SbhCEqHPGwtplMbC9DlLTC+7udVUiFenGC/agYFSCQ9R3XuZU3IT6dHBrOrN
gxw8El1G6lqpQ7JjKpXaOmLbhRiPhALygytBokF4TwzoCnUmtopRyBfMcXISlyDG
CLKN0UzhV3fZY9YXVyZnKMqzyVICy7ClYNY3NhvOSZ5uQ/GUSiDqv/npXbGgHr1k
qTP9I0BZcs99z/jKTIh9zVgwK3IRl3bxqT1SZIHM8J6VcTQPuElaa7Fq8bdhBKET
YLBi6t6b8/6j34t7CitsMbnD5QIBvpjqnpv4afBAivAwM+sPcgFwkon7UmmF1D+5
gbsQhSJ2du78Rz9sxk30deZO1UGGaqBVYNf5NjSrJplpS+elcJNo9N07Ug6630lV
CiQsgzNRm+T0XuAB2lWvTseyIqRpmdoWrGnLwOUKDN8wQs6u7slmiLKmLtaOuH8f
Iew1udqfq6odOLyKf2L2YBFPzzUOtyhfFZJzhno0E4lDMpNMCzTnzONLv5liHdxx
Rc3+i0v9NvnIr701cA6x1QSUK7cQF9ySHEWiVcMPLtxPy4/i9nUr+JiQ6FJyowM1
rzfXcUg05KnqPn1+in0M
=hyyM
——-END PGP SIGNATURE——-
SHA256 hash:7c5db035560c5d0a319bb8b612c3c8cd64ebb9b2a289d81dd00e5680b257934c
Requirements:python

For comments, please send me an e-mail.


Related articles


←  py-stl / stl2pov csv2tbl  →