Skip to content

A python program that converts svg files into gcode

License

Notifications You must be signed in to change notification settings

fzellini/svg2gcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

svg2gcode

A python3 program that converts paths of svg files into gcode

svg2gcode.py converts all svg path element in gcode.

Output gcode can be re-arranged ( e.g. resized, offsetted to 0,0) using gcode-doctor

python3 svg2gcode.py -h
usage: svg2gcode.py [-h] [--xpath XPATH] [--g01 G01] [--pre PRE] [--post POST]
                    svgfile gcodefile

svg2code

positional arguments:
  svgfile        input svg file
  gcodefile      output gcode

optional arguments:
  -h, --help     show this help message and exit
  --xpath XPATH  process this xpath (e.g. ".//*[@id='g7167']") (default: ./)
  --g01 G01      append to first G01 path (default: F1000 S1000)
  --pre PRE      gcode prelude (default: G21 G92 X0 Y0 M3 )
  --post POST    gcode prelude (default: M5 )

About

A python program that converts svg files into gcode

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages