svg2shenzhen icon indicating copy to clipboard operation
svg2shenzhen copied to clipboard

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

Open PigeonFX opened this issue 3 years ago • 6 comments

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

PigeonFX avatar Sep 16 '21 13:09 PigeonFX

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

rcludwick avatar Oct 10 '21 23:10 rcludwick

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.

Sodium-Hydrogen avatar Oct 11 '21 01:10 Sodium-Hydrogen

You need to remove the scaling from those objects.

Could you tell me how to do that?

PigeonFX avatar Oct 11 '21 02:10 PigeonFX

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

Sodium-Hydrogen avatar Oct 11 '21 13:10 Sodium-Hydrogen

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.

PigeonFX avatar Oct 11 '21 15:10 PigeonFX

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.

Tom-Archer avatar Jun 16 '23 06:06 Tom-Archer