Stretch icon indicating copy to clipboard operation
Stretch copied to clipboard

Unable to curve lines

Open emosenkis opened this issue 3 years ago • 3 comments

When I convert straight line segments to curves then reimport to KiCad, they continue to appear there as lines with the same endpoints instead of curves. Is there a specific way to create a curved board outline or trace?

emosenkis avatar Jan 07 '21 12:01 emosenkis

There are two ways, both of which have some downsides.

The way I prefer is to create many control points until the lines look smooth:

image

In the "edit path by node" mode in Inkscape, click on the lines that you want to smooth, and mash the "insert new nodes" button a few times. The downside here is that the line can't be easily adjusted anymore.

The other method is to convert it to a KiCad curve. In the XML editor (ctrl-shift-X), find the line's type: image

Change it to gr_curve: image

This allows you to even edit the curve as a bezier in KiCad, which is kind of neat. Unfortunately, you can only do this with lines / arcs / etc. Segments are the copper traces, and if you're trying to convert them to curves, then they will no longer associate with PCB nets so your ratsnests will show. If you get that manufactured, it'll still work, electrically, though.

JarrettR avatar Jan 07 '21 16:01 JarrettR

I think this might be solved in the latest KiCad - maybe only in nightly. Would you consider adding support?

emosenkis avatar Jul 20 '21 05:07 emosenkis

I just skimmed the new changes in the code, and I don't believe anything is different.

Consider curves to be in the same category as arcs - You can't currently route tracks as arcs in KiCad. If that ever changes, then it's likely that curves will also be possible.

You can, however, create arcs using the "Place" menu, and assign it to the copper layer. It just won't associate with any particular net. Changing that to a curve in Inkscape's XML editor will work, with same caveat that it won't associate with any nets.

JarrettR avatar Sep 19 '21 03:09 JarrettR