Inkscape Community
Help Using Inkscape => Inkscape Beginners' Questions => Topic started by: Jarhau on August 27, 2018, 01:29:21 AM
-
I'm trying to batch convert about 200 DXF drawings to SVG from commandline, for a website, with a command: inkscape -z -l drawing.svg drawing.dxf
but this brings up a GUI window, asking for a few parameters.
Can I pass parameters to this extension so it does not require GUI window at all?
I can see that the extension GUI window has parameters scalemethod, scale, xmin, ymin, encoding etc..
How can one pass these from commandline? Like forexample:
inkscape --verb scalemethod=manual --verb scale=1.0 --export-area-snap --no-gui -z -l drawing.svg drawing.dxf
(https://cdn.pbrd.co/images/HB5amD0.png)
This works OK when using Inkscape GUI, but can not be done to 200 files manually..
EDIT: Ok dxf_input.py can be run directly with python..
-
Yep, it's not possible currently via Inkscape directly. I think there was a question in stackexchange about this only recently, maybe you found your solution there.