gotcha

Author Topic: Command line parameters to extension?  (Read 581 times)

August 27, 2018, 01:29:21 AM
Read 581 times

Jarhau

  • Newbie

  • Offline
  • *

  • 1
  • Gender
    Male

    Male
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



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..
« Last Edit: August 27, 2018, 04:13:31 AM by Jarhau »
  • 0.92.3 (2405546, 2018-03-11)
  • Kubuntu 18.04

August 27, 2018, 02:46:34 PM
Reply #1

Moini

  • IC Mentor

  • Offline
  • ******

  • 1,568
    • VektorRascheln
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.