Anonymous

Guides/Inkscape for Laser Cutting: Difference between revisions

From London Hackspace Wiki
Updates to alternate method now I've tested it :-)
(Added alternative method of creating DXF via EPS and pstoedit)
(Updates to alternate method now I've tested it :-))
Line 140: Line 140:
  pstoedit -dt -f dxf:-polyaslines somefile.eps somefile.dxf
  pstoedit -dt -f dxf:-polyaslines somefile.eps somefile.dxf


Note: untested. Also, the '''polyaslines''' option may not be required for the laser cutter; I haven't yet tested this either.
Or in a single line:
 
  inkscape -E /dev/stdout somefile.svg | pstoedit -dt -f dxf:-polyaslines - somefile.dxf
 
This is tested and working. Colours from the original SVG file persist through the conversion process, so this can be an easy way to set up layers for the laser cutter software.
 
The imported DXF will end up being tiny (something like 1/10 of its Inkscape size), and will also be positioned a long way off the left and bottom of the on-screen laser bed. The size *might* be fixable by using the <code>-mm</code> argument:
 
  pstoedit -dt -f 'dxf:-polyaslines -mm' somefile.eps somefile.dxf
 
but this is untested. There are also arguments for rotating, translating, and scaling the output of <code>pstoedit</code>, but those need further experimentation.
 


[[Category:Guides]]
[[Category:Guides]]