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

Drill, and Edge cuts always scale larger then Cu and Mask layer? #132

Open
PigeonFX opened this issue Sep 16, 2021 · 6 comments
Open

Drill, and Edge cuts always scale larger then Cu and Mask layer? #132

PigeonFX opened this issue Sep 16, 2021 · 6 comments

Comments

@PigeonFX
Copy link

Whenever I try and export to KiCad the drill file and edge cut are much larger than the Cu and Mask layer?

https://imgur.com/i3lutOi

https://imgur.com/rJZvIsJ

https://imgur.com/249bxfi

@rcludwick
Copy link

rcludwick commented Oct 10, 2021

You need version X of Inkscape and version Y of kicad. Y is easier to solve for than X.

@Sodium-Hydrogen
Copy link
Contributor

Changing versions doesn't fix this. The issue is scaling. By design everything but the edge cuts and drill layer is saved as a png and then converted to the module. Edge cuts and drill are processed directly to the kicad file. The script that does this isn't aware of transformations including scaling. You need to remove the scaling from those objects.

@PigeonFX
Copy link
Author

You need to remove the scaling from those objects.

Could you tell me how to do that?

@Sodium-Hydrogen
Copy link
Contributor

Sodium-Hydrogen commented Oct 11, 2021

I'm not sure on the circles for the drill layer, but the edge cuts if you have a path and break it apart and recombine. That has fixed the scaling before. Also ungrouping everything may help because the groups can have transformations on them as well.

Unfortunately this is something that really needs to be fixed in svg2shenzhen.

I'm trying to get vector to vector conversion working for all the layers because it is lossless, but svg2mod still has some small bugs and doesn't support drills yet. Once it's features are compatible with svg2shenzhen I'll submit a pull request overhauling the conversion system.

Edit: see #107

@PigeonFX
Copy link
Author

Once it's features are compatible with svg2shenzhen I'll submit a pull request overhauling the conversion system.

Thank you. Good to know people are still working on the project! Got worried seeing the last update was over a year ago.

@Tom-Archer
Copy link

Tom-Archer commented Jun 16, 2023

I think this is what had me tearing my hair out last night.

I was trying to make a cutout in a copper layer which was the same size as a shape on the mask layer.

When imported into KiCad the copper would "bleed" into the shape on the mask layer.

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

4 participants