I’ve read through the wiki page on the command line, but I’m *hoping* maybe the doc isn’t complete and Inkscape can do what I want.
I do a lot of drawing in AutoCAD, but some drawings I do in mm and some I do in inches. Then a typical workflow ends up being to simply create a new file in Inkscape, import the DXF (which means I set the scale to 1 or to 25.4 when Inkscape asks, depending on what units I drew in) move the import to the center of my page, and then save as a new SVG. Then I open that in my laser cutter and cut. Often there is one minor change, but I have to repeat all of the above.
I’m very comfortable using a command line in OSX. The question is can I open a DXF at the command line of Inkscape, and if so, what would I do to set the scale factor? I basically want to do this —without-gui so it just spits out the output. Yes, I fully realize there are other ways to go DXF to SVG, but I do also sometimes use Inkscape to add things to my drawings (like things I want to engrave, I just do that at the end of the prototyping process).
So, can this be done? If so, what command line options to I need to be looking at?
I’ve read through the wiki page on the command line, but I’m *hoping* maybe the doc isn’t complete and Inkscape can do what I want.
I do a lot of drawing in AutoCAD, but some drawings I do in mm and some I do in inches. Then a typical workflow ends up being to simply create a new file in Inkscape, import the DXF (which means I set the scale to 1 or to 25.4 when Inkscape asks, depending on what units I drew in) move the import to the center of my page, and then save as a new SVG. Then I open that in my laser cutter and cut. Often there is one minor change, but I have to repeat all of the above.
I’m very comfortable using a command line in OSX. The question is can I open a DXF at the command line of Inkscape, and if so, what would I do to set the scale factor? I basically want to do this —without-gui so it just spits out the output. Yes, I fully realize there are other ways to go DXF to SVG, but I do also sometimes use Inkscape to add things to my drawings (like things I want to engrave, I just do that at the end of the prototyping process).
So, can this be done? If so, what command line options to I need to be looking at?
—Donnie
Hello, same question for me. I need to write a script to batch proccessing ai files to SVG,
I run, with Inkscape 0.92.3 (2405546, 2018-03-11) under Ubuntu 18.04 :
inkscape --verb-list > inkscape-verb-list
and I found ObjectRotate90 for example, but nothing to Resize.
There are EditPasteSize
And is there a way to know how use a command?
My version is probably to old, there is no action-list as specified in https://inkscape.org/forums/beyond/command-line-question/
Yes, too old, I remove it and install version 1.0.2 with PPA ppa:inkscape.dev/stable
and if I run
inkscape --action-list | grep
transform it returns :transform-remove : Remove any transforms from selected objects.
transform-rotate : Rotate selected objects by degrees.
transform-scale : Scale selected objects by scale factor.
transform-translate : Translate selected objects (dx,dy).
and again same question: is there a way to know how use the action transform-scale ? how to give parameter?
I test without parameter in case there are a feed back, but :
inkscape --actions="transform-scale" my-test-file.svg
returns
Unable to init server
I am always interested to have a solution… I just post on my last searches and issue on https://graphicdesign.stackexchange.com/questions/155510/inkscape-in-cli-fitcanvastodrawing-with-margin-parameters