Closed Protoneer closed 10 years ago
Hi @Protoneer,
The core problem is that KiCad itself doesn't support splines, only lines, circles and arcs so this feature cannot be perfectly implemented due to this limitation.
The best thing you can do is to open the SVG in a drawing application and segment the splines (break them into a series of lines). The following post seems to explain how to do this: http://www.inkscapeforum.com/viewtopic.php?f=5&t=4308
Then open the resulting SVG in dxf2svg2kicad and export it as KICAD_PCB.
Doing this segmentation in my script would certainly be possible but would involve a lot of work I believe so the above solution would be the preferred one.
Solved?
Thanks for the reply....
I tried the solutions from the forum. At first it did not work, but then I split the lines manually and it started working.
This is the lines as they came out of Inkscape: d="M-20.0 -15.0L-16.67 -15.21L-14.06 -15.78L-11.91 -16.58L-10.0 -17.5L-8.08 -18.41L-5.93 -19.21L-3.32 -19.78 L0.0 -20.0"
It does not seem to use comma notation.
Thanks for the help.
I'm glad that it worked!
By saying "comma notation" I assume that you mean that values in path strings should be separated by commas. As far as I know these values can be separated by any whitespace characters or commas so this is not an issue.
Hi.
Would you know how to convert splines?
I have the following line in my SVG: path d="M-20,-15 C-10,-15 -10,-20 0,-20 " style="stroke:#000000;stroke-width:0.25;"
the only thing you're nice script does not do is the spline bit...