Exported SVG's incompatible with svgnest

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Post Reply
Witz
Posts: 6
Joined: Thu Apr 27, 2017 8:14 pm

Exported SVG's incompatible with svgnest

Post by Witz »

I'm trying to export SVG's of parts for nesting and CNC cutting of parts for Open Source Ecology. I tried the drawing workbench first, but then I saw a thread recommending using 2DView in the Draft WB. The 2DView produces cleaner-looking SVG's, but still, has flaws. Exports I've tried are missing holes or have inf fill color in some holes. The main issue though is when I upload to svgnest I can not select the bin as a component; All the parts have independent line segments not continuous. Maybe this is more of an Inkscape question if there is a step I can do to fix it in there, but the inconsistency in the SVG export files makes me think FreeCAD export methods is buggy.

I made a video showing some examples here: https://youtu.be/uHi3vLb_nOU
There are also recent notes on my log at OSE: http://opensourceecology.org/wiki/AbeAnd_Log

Thanks for any assistance on this.
--Abe

OS: Ubuntu 16.04.3 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6712 (Git)
Build type: None
Branch: releases/FreeCAD-0-16
Hash: da2d364457257a7a8c6fb2137cea12c45becd71a
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
User avatar
Kunda1
Veteran
Posts: 13416
Joined: Thu Jan 05, 2017 9:03 pm

Re: Exported SVG's incompatible with svgnest

Post by Kunda1 »

Offtopic: why doesn't OSE adopt 0.17 in to it's workflow yet ?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
saso
Veteran
Posts: 1821
Joined: Fri May 16, 2014 1:14 pm
Contact:

Re: Exported SVG's incompatible with svgnest

Post by saso »

In the following topic I have explained how to clean up in Inkscape the exported svg from FreeCAD and make it work with svgnest.
https://forum.freecadweb.org/viewtopic.php?f=3&t=14038

Note that FreeCAD 0.17 has built in support for the complete workflow for this...
https://forum.freecadweb.org/viewtopic.php?t=19245
https://forum.freecadweb.org/viewtopic.php?t=23484
Witz
Posts: 6
Joined: Thu Apr 27, 2017 8:14 pm

Re: Exported SVG's incompatible with svgnest

Post by Witz »

Actually, 0.17 and 0.16 are included in OSE Linux, but I need to install 0.17 on my desktop. I may be a holdout since I have been assuming it is more beta still. I will install 0.17 and retry the workflow. I saw the thread explaining 2DView, but didn't realize I needed 0.17 ? I see yoriks new nesting solution to, but I assume it is to beta for the part complexity.

Also, I did try uploading gh.svg from that thread to svgnest yesterday and it looks wrong like it has issues with the arcs so maybe svgnest has been updated since then.

Once I get all this working I plan to make an instructional video showing from FreeCAD parts to G-Code for the CNC torch table.
It will be nice when the code gets improved enough maybe we will be able to select parts, enter counts and get G-code out with a few clicks.

Thanks for the info.
User avatar
saso
Veteran
Posts: 1821
Joined: Fri May 16, 2014 1:14 pm
Contact:

Re: Exported SVG's incompatible with svgnest

Post by saso »

This post https://forum.freecadweb.org/viewtopic. ... 20#p112312 and some after it are the important ones for the Inkscape workflow...
Witz
Posts: 6
Joined: Thu Apr 27, 2017 8:14 pm

Re: Exported SVG's incompatible with svgnest

Post by Witz »

I installed FreeCAD daily and have been testing various export methods. With 0.17 the only issue appears to be that circles are polygons with fewer sides relative to size. Exporting to DXF then saving as SVG in Inkscape looks better, but the part objects don't appear to convert to paths so it is not compatible with that workflow. Attempts to load the converted SVG's into SVGNest also failed. Once I was able to select what I though was the bin I set, but it was a part because the scaling was off and it separated the parts and nested the cut holes. Then I had more trouble with it only selecting line segments despite having selected and joined the nodes for the bin.

I tested with 0.17 update today and the previous version.

OS: Ubuntu 16.04.3 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.12396 (Git)
Build type: None
Branch: master
Hash: fb2b9d6cef287d826a905b90928d41a03e38d928
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: English/UnitedStates (en_US)
chrisb
Veteran
Posts: 49040
Joined: Tue Mar 17, 2015 9:14 am

Re: Exported SVG's incompatible with svgnest

Post by chrisb »

Have you tried the FreeCAD builtin support as mentioned by saso? How is it working?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Post Reply