Skip to content

fzellini/svg2gcode

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

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