I am trying to save this file https://cdn.joejiko.com/img/gaming/pokemon/team-valor-vector.svg as a DXF file but Inkscape won't save the file. How do I correct it so that I can save it as a DXF file.
This is the error message I get :-
Traceback (most recent call last):
File "dxf_outlines.py", line 345, in <module>
e.affect()
File "/usr/share/inkscape/extensions/inkex.py", line 265, in affect
self.getposinlayer()
File "/usr/share/inkscape/extensions/inkex.py", line 207, in getposinlayer
x = self.unittouu( xattr[0] + 'px' )
File "/usr/share/inkscape/extensions/inkex.py", line 351, in unittouu
return retval * (self.__uuconv[u.string[u.start():u.end()]] / self.__uuconv[self.getDocumentUnit()])
File "/usr/share/inkscape/extensions/inkex.py", line 304, in getDocumentUnit
p = param.match(svgwidth)
TypeError: expected string or buffer
[solved] Saving as DXF error
-
- Posts: 2344
- Joined: Sun Apr 14, 2013 12:04 pm
- Location: Michigan, USA
Re: Saving as DXF error
I get the same error, but if I copy-all and paste into a new document, I save as a dxf.
Hope this helps...
Hope this helps...
Have a nice day.
I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1
The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/
I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1
The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/
Re: Saving as DXF error
This is a known error of the extension that is used to export to DXF, which does not work without a value for width for the svg image.
You could also either edit the SVG file and add width="100%" into the svg tag, or use the XML editor and add a width attribute to the SVG element with a value of 100%.
You could also either edit the SVG file and add width="100%" into the svg tag, or use the XML editor and add a width attribute to the SVG element with a value of 100%.
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!
Inkscape FAQ - Learning Resources - Website with tutorials (German and English)
Inkscape FAQ - Learning Resources - Website with tutorials (German and English)
-
- Posts: 2
- Joined: Fri Jul 22, 2016 7:01 pm
Re: Saving as DXF error
Thanks for the help, problem solved !
I used the xml editor option.
I used the xml editor option.