[solved] Saving as DXF error

General discussions about Inkscape.
lasercutter
Posts: 2
Joined: Fri Jul 22, 2016 7:01 pm

[solved] Saving as DXF error

Postby lasercutter » Fri Jul 22, 2016 7:06 pm

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

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Saving as DXF error

Postby tylerdurden » Fri Jul 22, 2016 9:16 pm

I get the same error, but if I copy-all and paste into a new document, I save as a dxf.

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/

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Saving as DXF error

Postby Moini » Sat Jul 23, 2016 6:32 am

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%.
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)

lasercutter
Posts: 2
Joined: Fri Jul 22, 2016 7:01 pm

Re: Saving as DXF error

Postby lasercutter » Sat Jul 23, 2016 4:13 pm

Thanks for the help, problem solved !

I used the xml editor option.


Return to “General Discussions”