DXF Export fails due to an error in dxf_outlines.py (float parsing error)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Hi,
I am using Inkscape (on Ubuntu 16.04) for manufacturing devices for my research project. In 0.91, I was able to create my devices in Inkscape and save it as DXF files (which I had to convert later on to Gerber for the manufacturer).
After 0.92 update I am no longer able to save my file as DXF. The error log points out that the "mm" unit inside the string is the problem. There are several lines in dxf_outlines.py, which parses these strings as floats. As a workaround and to dissect the problem, I have modified first identified line as following:
float(node.
Then I have got the same error on other lines. Therefore, I have replaced those as well...
elif node.tag == inkex.addNS(
cx = float(node.
cy = float(node.
r = float(node.
d = "m %s,%s a %s,%s 0 0 1 %s,%s %s,%s 0 0 1 %s,%s z" % (cx + r, cy, r, r, -2*r, 0, r, r, 2*r, 0)
p = cubicsuperpath.
elif node.tag == inkex.addNS(
cx = float(node.
cy = float(node.
rx = float(node.
ry = float(node.
d = "m %s,%s a %s,%s 0 0 1 %s,%s %s,%s 0 0 1 %s,%s z" % (cx + rx, cy, rx, ry, -2*rx, 0, rx, ry, 2*rx, 0)
p = cubicsuperpath.
Basically, this issue involves circles and ellipses. Of course removing unit from the string didn't solve the problem. But I have identified the lines involved. I hope this helps to improve Inkscape!
description: | updated |
could you attach the svg file that is causing the problem, for testing purposes?