flatcam

Open full view…

Bugs in the SVG import function

foaly
Sun, 07 May 2017 16:50:04 GMT

Hi, I've found some bugs in the SVG import functions (I haven't be able to import more than a simple square at first), I've managed to fix some of them but it still won't import some geometries. In svgparse.py : - line 477 should read 'scale' and not 'translate' (copy-paste error?) - line 468 : "if match.group(2)" - line 479 : "if match.group(2)" - line 335 : "tr[0], tr[1]" should be "tr[1], tr[2]" It passes some problems, but it still won't import geometries with "holes" in them, such as this one : d="m23.931 11.415a7.4414 3.6144 0 0 1 -7.4414 3.6144 7.4414 3.6144 0 0 1 -7.4414 -3.6144 7.4414 3.6144 0 0 1 7.4414 -3.6144 7.4414 3.6144 0 0 1 7.4414 3.6144zm-18.308-8.0084h21.545c1.8322 0 3.3073 1.4751 3.3073 3.3073v12.379c0 1.8322-1.4751 3.3073-3.3073 3.3073h-21.545c-1.8322 0-3.3073-1.4751-3.3073-3.3073v-12.379c0-1.8322 1.4751-3.3073 3.3073-3.3073z". Would it be possible for you to fix it? I'm trying to cut the outline of a part in a sheet of carbon fiber and FlatCAM has been working great for PCBs with Gerbers, so I'm trying to use it for this as well but importing SVGs or converting SVGs to Gerbers has not worked so far. By the way, FlatCAM doesn't show any error message with using the GUI menu, I had to use the import_svg function in the console. Thanks, Foaly