Download and install for Debian and Ubuntu Linux: https://github.com/fablabnbg/inkscape-paths2openscad/releases
SVG paths to OpenSCAD converter. Copied from Thingiverse things 24808 and 25036, both copyright user dnewman and released under GPL v2 or later.
See also: Thingiverse things 1065500 Inkscape to OpenSCAD converter v7 by Neon22.
Examples published on thingiverse: https://www.thingiverse.com/tag:inkscape-3D
Example for a scriptable call (untested)
inkscape --verb=EditSelectAll --verb=SelectionCombine --verb=EditDeselect --verb=command.extrude.openscad_auto.noprefs --verb=EditUndo --verb=EditUndo --verb=FileQuit /full/path/to/file.svg
-
install openscad
-
Add OpenSCAD to the path:
-
Create a new Environment Variable:
Name: SCAD_PATH
Value: path to openscad.exe (e.g., C:\Program Files\OpenSCAD)
-
Add or extend the PATH environment variable:
Name: PATH
Value: %SCAD_PATH%
-
open the paths to OpenSCAD extension in inkscape, got to the Commands tab.
Replace all occurances of 'openscad' with the full path to openscad.exe -- also include the quotes. E.g.:
"C:\Program Files\OpenSCAD\openscad.exe" "{NAME}.scad" "C:\Program Files\OpenSCAD\openscad.exe" "{NAME}.scad" -o "{NAME}.stl"