SVG import issue (from Kicad

Hi,
When I open a SVG file that I’ve created with kicad (7.0.10) in lightburn (1.5.01) on windows, each Text in the file is shown in double.
Once as expected, and the second time, it’s a low polygon line single line

When I open the SVG file in inkscape, it looks OK.
image
GPIO_jetson-F_Silkscreen

Affinity Designer looks similar to LightBurn.

and CorelDraw.

and Inkscape in ‘Outline’ view mode.

So those vectors are present in the SVG exported from KiCAD. Perhaps a layer needs suppressing in the KiCAD export?

Are you able to export as DXF as well? I also have problems with LB and SVG import/export sometimes (few, but here and there), in those cases I use DXF format and never had an issue with that.

Thanks guys.
I’ve been able to export to a DXF, and I’ve got the result that I wanted

1 Like

Hi,
the extra text shown in the SVG import are invisibleitem, so lightburn should not display them. That’s why inkscape show a proper render in normal mode, and show a wrong render in the outline mode.

I have another issue with the DXF import, each of my line are doubled. When I have a line in kicad (the board edge for example), I get 2 lines in lightburn showing the width of my board edge. But I’ll get two pass of the laser which is not what I’m trying to get.
is there an option on the DXF import to import the actual line, and not the outline of the graphics ?
image

even if a draw a very very slim line, I still get 2 of them.

With the same graphics and the SVG import I do get only one line (but I have the text issue described earlier in this thread).

If you are OK with editing your SVG file, this will move all of the polygon (vector) text to the tool layer T1.

Open the SVG in Notepad++

Search>Replace
image

In the Find what box, enter:

g class=“stroked-text”

The above line should start with a “<” and end with a “>”

In the Replace with box, enter:

g style=“stroke:#f36926;stroke-width:0.05mm;fill:none”

The above line should start with a “<” and end with a “>”

Select the Replace All button

Save to a new filename.SVG

Open the new filename.SVG and all of the polygon(vector) text will be on tool layer T1
This_Time5

1 Like

Thanks, that could be a good idea, I can do a script for that.

You can also do a replace all on the text too, if you want to move it to another layer based on stroke color.

Finally,
I’ve used the PDF export from Kicad. I can set colors in it. so I’ve been able to assing the cut layers directly.

2 Likes

Thanks for letting us know you’ve found a solution it might help others in the future.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.