Simple converter from SVG paths objects to GCode paths (only XYZ points). It is designed to create engravings on 3C milling machine, so every point will be at given Z value. Only points where paths are discontinued Z value will increase Z coordinate. It is really useful for text and simple images engravings.
Typical usage looks like this
python svg2paths.py test.svg sinus -z 24.5 -s 50 -j 10 -ox -55 -oy 65 -sx 0.25 -sy 0.25 -r -90
Required parameters:
- Source SVG file
- Target paths filename
- Start Z position for safe path start (
-s) - Target Z value of engraving (
-z)
Optional parameters (default values in parathesis):
- Diameter of a cutter (
-d 1) - Z value increase between discontinuity (
-j 10) - Origin point
(x,y)corresponding to SVG(0,0)(-ox 0.0 -oy 0.0) - Scale
(sx,sy)of imported paths (-sx 1.0 -sy 1.0) - Rotation of imported paths in degrees (
-r 0)
GNU:
Text:
Now svg2paths will parse EVERY path object (even some rects from headers) and would try to convert it. Also transforms from layers will not be considered. Clean your SVG files before use.

