Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document steps for adding artwork #5

Closed
amcewen opened this issue Feb 24, 2020 · 8 comments
Closed

Document steps for adding artwork #5

amcewen opened this issue Feb 24, 2020 · 8 comments

Comments

@amcewen
Copy link
Contributor

amcewen commented Feb 24, 2020

Instructions on basic bitmap converter in Kicad, and DXF import (for basic board outlines); and then Svg2Shenzhen plugin for Inkscape for doing fancier artwork and/or board outlines.

@amcewen
Copy link
Contributor Author

amcewen commented Dec 4, 2020

Documentation done, but my test kicad module doesn't have the layers lined up correctly. Need to try the latest svg2shenzhen release.

@amcewen
Copy link
Contributor Author

amcewen commented Dec 6, 2020

Tried the latest svg2shenzhen release, and it still has the problem. Similarly if I moved the deer's chest onto the F.Cu layer. It feels more like a problem with the Edge.Cuts layer, as that's quite a way off from the REF** text that's the anchor.

Looking at the code, the Edge.Cuts layer is treated differently, which maybe points in the right direction. Might be worth trying something on both F.SilkS and F.Mask or F.Cu to see if they all line up, to work out if it is just the Edge.Cuts layer going awry.

@arthurrowland
Copy link
Contributor

After a successful import of single outline on the Edge.Cuts layer, I found some issue on a file with multiple shapes. Alignment looked spot on but there was no sign of the Edge.Cuts layer - not even in the footprint window preview.

I don't think it was exporting from svg2shenzhen, since that was the only layer that didn't have a file with its name in the .svg2shenzhen-cache folder after I enabled debug mode. (it might have been there without debug anyway, but I hadn't checked).

When I'm in the footprint editor looking to bring it in, the edge.cuts layer is greyed out - presumably because there is no content on that layer:

screenshot of layers list in kicad, edge cuts and margin layers are not interactive

The same shape would happily import correctly on the front silkscreen layer, but I couldn't manually move it or add another shape to the edge cuts layer in the footprint editor:

screenshot of drop down list of available layers

I think that's as far as my skill level can get in debugging but hopefully provides some leads.

@arthurrowland
Copy link
Contributor

Oh yeah, versions:

OS: Windows 10 Pro 10.0.19042, 64 bit
KiCad: (5.1.9)-1
Inkscape: 1.0 (4035a4fb49, 2020-05-01)
svg2shenzen: 0.2.18.7

@arthurrowland
Copy link
Contributor

Prompted by the expertise of @concretedog, I resolved my issues by double checking that the shapes were paths, not only strokes, via Path -> Object to Path and Path -> Stroke to Path, and then got a blocky shape that was resolved by adding more nodes to the shape. Looks like edge_cuts has different rules for some reason.

oval shapes in inkscape with many many nodes

the imported footprint in kicad

While I was at it I found some related issues on the svg2shenzen repo with a search:

The alignment issue resolved by ungrouping.

Missing layers resolved through DPI setting

@amcewen do you have the file you were having trouble with for me to test?

@amcewen
Copy link
Contributor Author

amcewen commented Aug 11, 2021

I've checked the file that I'd had the problem with. It was still causing problems (without me trying anything new), and the ungrouping trick fixed it.

@arthurrowland
Copy link
Contributor

Does that address the totality of this issue or is there more documentation around bitmaps and DXF that could be added?

@amcewen
Copy link
Contributor Author

amcewen commented Aug 11, 2021

I think we can leave it with just the Svg2Shenzhen stuff (given we've run the course twice without the DXF and bitmap stuff - and I don't use either of those in practice anyway, always reach for the better Svg2Shenzhen).

@amcewen amcewen closed this as completed Aug 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants