Interlude: A Helpful Python 3.1 Utility for Engraving using a CNC Machine

by aule on November 10, 2009

New! This utility is now hosted on SourceForge under GPL License!

As I am getting very close to create silver shapes for jewelry, I may want to engrave those shapes on my CNC machine with various patterns after finishing.

I use various utilities for creating the GCODE files for my engravings. However, I find myself having to change coordinate systems going from my utilities to my actual machine, which can be a real pain in the buttocks.

Worse, some of the utilities do not insert Z motions to plunge and to clear the endmill, and the files are large enough that inserting the motions by hand, or even by text replacement, is not realistic.

And so I created my own Python 3.1 script for performing many of the common coordinate transposition chores.

With it, I can:
Flip X, Y, or Z coordinates
Miror X, Y, or Z coordinates
Flip or Mirror both XY coordinates
Insert Z motions into a GCODE file devoid of them.

You will need to download this project archive.

If you should have problems downloading, or if the archive appears on your browser as text, this means you should manually save the file as a .zip file.

Enjoy, and please let me know if the script is indeed useful to you.

Aulë

{ 1 comment… read it below or add one }

jasondeck November 13, 2009 at 12:35 am

I don’t have the machinery for using your code, but kudos and thanks for sharing it for everyone to use.

Jason

Leave a Comment

Previous post:

Next post:

WordPress Admin