Skip to content

Convert Inkscape SVG drawings to KiCad PCB and footprint modules

License

Notifications You must be signed in to change notification settings

badgeek/svg2shenzhen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Svg2Shenzhen

Inkscape extension for exporting drawings into a KiCad PCB

screenshot_125

Features

  • Draw Any kind of shapes without restriction (unlike svg2mod)
  • Supports Drill Pad, and custom drill size
  • Supports Edge Cut (PCB Shape)
  • Tested on OSX, Windows and Linux

Install

  1. Download the latest version (0.2.17) of svg2shenzhen-extension.zip

  2. Extract and copy the files into the directory indicated in Inkscape under Edit -> Preferences -> System: User extensions

How to

In Inkscape:

  1. Extension > Svg2Shenzhen > Prepare Document
  2. Choose layer (F.Cu.. etc)
  3. Draw PCB
  4. Extension > Svg2Shenzhen > Export KiCad

Download and open Example PCB

Tutorials

Layername definitions

  1. After the Prepare Document step, only two fabrication layers are used: Edge.Cuts and Drill, and for the different PCB-layers, only the F.Cu layer is active. The others have the post-fix "-disabled" in their layer name; change this by removing this post-fix to enable more layers.
  2. Special use of the solder-mask layers F.Mask and B.Mask: Due to the fabrication standard of PCB manufacturing, when enabled, this will lead to the solder-mask NOT being present where there are black areas in your design. This is kinda PCB/KiCad standard, but can be confusing. If you want to Get-What-You-See from Inkscape, meaning that you really draw the color where you want the solder-mask to be, change the layer name to F.Mask-invert
  3. Super easy simple PCB with exposed copper surrounded by solder-mask, can be generated automatically by leaving the F.Mask layer empty and renaming it to F.Mask-auto.
  4. Feel free to add your own layers, for testing graphics and designing stuff. All these other layers will be ignored.

Tips

  1. For Edge.Cut layers, you need to convert any polygons or objects to paths with only an outline, no fill. Don't use any groups on Edge.Cut layers, and if you have paths with inner cut-outs, break them apart into separate paths.
  2. For Drill layers, place circle objects, and they will be converted into drill pads in KiCad with the same diameter. These drills will not have annular rings, unless you also add copper to the F.Cu and B.Cu layers. Don't use any groups on the Drill layer either.

References

Support this project

This project is developed independently and without any connection to funding or big collective or organization. Donation is highly appreciated. Go to https://www.patreon.com/badgeek to become a patron and support this project

Contributors

Credits