Trouble saving files as dxf

Post questions on how to use or achieve an effect in Inkscape.
Nicho
Posts: 1
Joined: Fri Sep 04, 2015 7:41 pm

Trouble saving files as dxf

Postby Nicho » Thu Sep 17, 2015 11:26 pm

Hi guys, i'm having this error show up when i try and save svg files as dxf files..

Traceback (most recent call last):
File "dxf_outlines.py", line 345, in <module>
e.affect()
File "C:\Program Files\Inkscape\share\extensions\inkex.py", line 265, in affect
self.getposinlayer()
File "C:\Program Files\Inkscape\share\extensions\inkex.py", line 207, in getposinlayer
x = self.unittouu( xattr[0] + 'px' )
File "C:\Program Files\Inkscape\share\extensions\inkex.py", line 351, in unittouu
return retval * (self.__uuconv[u.string[u.start():u.end()]] / self.__uuconv[self.getDocumentUnit()])
File "C:\Program Files\Inkscape\share\extensions\inkex.py", line 326, in getDocumentUnit
svgunitfactor = self.__uuconv[svgwidthunit] * width / viewboxwidth
ZeroDivisionError: float division


Any idea why this is happening? I'm using vers 0.91 on win 10

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Trouble saving files as dxf

Postby brynn » Fri Sep 18, 2015 10:36 am

It looks like a problem with an extension called inkex. But having it show up when you save the file, rather than when you use the extension, seems a little odd....

First question -- what is inkex? Can you give us a link to install it? (I don't recongnize it as one that's packed with Inkscape, but could be, I guess.) But maybe there's another extension that would work instead?? It's not LaTex is it?

Edit
2nd question -- Does the extension do what it's supposed to do? And can you save the file, even though it's throwing the error?

nobee1
Posts: 1
Joined: Sun Nov 22, 2015 7:16 am

Re: Trouble saving files as dxf

Postby nobee1 » Sun Nov 22, 2015 7:20 am

Hi,
I know its too late to respond, but I faced the same problem today. Then I solved it by following. First I exported the original file as a pdf file and then imported the pdf into a blank svg. Then I exported svg file as dxf. It worked like a charm.


Return to “Help with using Inkscape”