Exporting Inkscape (not plain) SVG

Post questions on how to use or achieve an effect in Inkscape.
JDM
Posts: 2
Joined: Wed May 25, 2011 4:52 am

Exporting Inkscape (not plain) SVG

Postby JDM » Wed May 25, 2011 5:28 am

I am attempting to create a process with Inkscape that imports some CAD drawings and exports them as SVG. I'd like to do this from the command line.

I have no issue importing the CAD file format into Inkscape (using a Python import script), and in the UI I can File > Save as... to save it as an Inkscape SVG file. However, there's no apparent way to do this from the command line. There is a the -l/--export-plain-svg option, but this strips out information that I need for further processing of the data (namely, it removes the node names which are labels that identify the layers in the CAD drawing).

I've tried adding an option like '--verb "FileSaveAs sample.svg"' without any luck.

Any suggestions?

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Exporting Inkscape (not plain) SVG

Postby ~suv » Wed May 25, 2011 8:57 am

JDM wrote:I've tried adding an option like '--verb "FileSaveAs sample.svg"' without any luck.
Verbs do not support arguments: Bug #361237 “Provide scriptable method of saving files

JDM
Posts: 2
Joined: Wed May 25, 2011 4:52 am

Re: Exporting Inkscape (not plain) SVG

Postby JDM » Wed Jun 01, 2011 5:14 am

I got that part (verbs not accepting arguments). However, I'm still looking for a way to export the Inkscape-formatted SVG as if I had saved it from the UI.


Return to “Help with using Inkscape”