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

Can I get some help, Non of the KiCad files being made on export. #133

Open
PigeonFX opened this issue Nov 2, 2021 · 10 comments
Open

Can I get some help, Non of the KiCad files being made on export. #133

PigeonFX opened this issue Nov 2, 2021 · 10 comments

Comments

@PigeonFX
Copy link

PigeonFX commented Nov 2, 2021

SO, I had it working then updated to Inkscape to 1.1.1 and everything broke. I uninstalled and reinstalled inkscape 1.1, but now its not exporting to KiKad.

I moved the svg2shenzhen files (0.2.18.7) into the User extensions folder. I used the example PCB file viruspcb linked in the tutorial. use the export function with open KiCad, KiCad doesn't open and in the selected folder there are no KiCad files.

Screenshot (68)

Screenshot (69)

Screenshot (70)

Edit to add:

This is the Debug code I get

inkscape -C -d 1200 -o "C:\Users\pigeon\Desktop\New folder\.svg2shenzhen-cache\images\F.Silk_g8169.png" "C:\Users\pigeon\Desktop\New folder\.svg2shenzhen-cache\khb3vqwb.svg"
"C:\Users\pigeon\AppData\Roaming\inkscape\extensions\svg2shenzhen\bitmap2component.exe" "C:\Users\pigeon\Desktop\New folder\.svg2shenzhen-cache\images\F.Silk_g8169.png" "C:\Users\pigeon\Desktop\New folder\.svg2shenzhen-cache\viruspcb.pretty\F.Silk_g8169.kicad_mod" F.SilkS true 1200 5
@rcludwick
Copy link

rcludwick commented Nov 2, 2021

At this point I'm thinking the best approach until they fix this would be to figure out how to export each layer into a dxf, and then import it back into kicad.

I'm thinking this may be abandonware given the number of issues vs pull requests over the last year.

That said you might try inkscape 1.0 since that seems to be the only version I've seen it works with.

@PigeonFX
Copy link
Author

PigeonFX commented Nov 2, 2021

That said you might try inkscape 1.0 since that seems to be the only version I've seen it works with.

Same problem with 1.0, 1.0.1, 1.0.2, 1.1 and 1.1.1

The frustrating part is I had it working yesterday on 1.1 (should have just left it alone).

I Will look into the .dxf option, I do all the artwork in illustrator so getting dfx is not a problem, but bringing it into KiCad is going to take some reading.

@rcludwick
Copy link

So you can import DXF graphics into any layer into kicad_pcb. Though I believe solder mask has to be inverted (in other words the positive area is where the solder mask is removed)

If I were going to do it, I would make a custom footprint with the copper, solder mask, and silkscreen dxf layers, then import the edge-cut layer directly into kicad_pcb.

You can make a registration mark on all layers to make it easy to line up, like a small "X" somewhere.

@PigeonFX
Copy link
Author

PigeonFX commented Nov 2, 2021

If I were going to do it, I would make a custom footprint with the copper, solder mask, and silkscreen dxf layers, then import the edge-cut layer directly into kicad_pcb.

How about drill holes, will KiCad be OK with them as dfx or will it just see them as small pockets to rout out?

@rcludwick
Copy link

rcludwick commented Nov 2, 2021 via email

@PigeonFX
Copy link
Author

PigeonFX commented Nov 2, 2021

Well I have a little progress the extension seems to be making all the layers to be imported:

Found if I tried to run the bitmap2component.exe in the latest release it errors out with:

Capture

so followed this thread:
https://githubmemory.com/repo/badgeek/svg2shenzhen/issues/5

And tried with that version of bitmap2component.exe I don't get the error massage above. But still only get the artwork files made, not the KiCad ones.

Screenshot (71)

Just still not making the .kicad_pcb, .pro or Pcbnew files

Screenshot (73)

Screenshot (72)

@rcludwick
Copy link

I was looking at svg2mod from here:

https://github.com/svg2mod/svg2mod

I'm going to try that this evening.

It would be similar in that certain layers need to be named the same way, but the last release was back in april.

@PigeonFX
Copy link
Author

PigeonFX commented Nov 2, 2021

It would be similar in that certain layers need to be named the same way, but the last release was back in April.

Recognise that name from them helping people on here, looks like they decided to do it themselves!

Please let me know how you get on, just been trying with dfx files, but ran into the issue that not all the copper traces I make are even weight (I trace a lot of old 1960's PCBS that were hand-drawn).

Would love to hear how you get on with it!

@PigeonFX
Copy link
Author

PigeonFX commented Nov 2, 2021

For what its worth.....Got it running!

Anyone who runs into the same issue Select the Export As: Project option.

Screenshot (79)

I also added drayde's files that mean you can have non plated through holes if you add a layer named "Drill-NP" manually (that is going to save me hours of clicking!) Thank you drayde, if you see this!

https://github.com/drayde/svg2shenzhen/tree/master/inkscape

Screenshot (78)
Screenshot (77)

Also, just confirmed, working on the latest Inkscape V1.1.1

@rcludwick
Copy link

I think svg2mod is easier. It's not perfect, but it seems quite a bit easier to use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants