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?
Exporting Inkscape (not plain) SVG
Re: Exporting Inkscape (not plain) SVG
Verbs do not support arguments: Bug #361237 “Provide scriptable method of saving files”JDM wrote:I've tried adding an option like '--verb "FileSaveAs sample.svg"' without any luck.
Re: Exporting Inkscape (not plain) SVG
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.