Skip to content

Standard box

KiCad Bot requested to merge github/fork/Misca1234/StandardBox into master

Created by: Misca1234

This push consist of two parts

The battery holder data file and the parser of that file the yml files contains the sizes, extra texts, and pins for a footprint

I added all the current battery holders to the yml file and some extra foot prints. The review, change to the BatteryHolder.yml file I guess will be done when I recreate battery holder pushes with the foot prints generated by this script.

A generic class that creates rectangle foot prints, StandardBox.py This class create all three layers and all necessary attributes for a foot print The F.SilkS line will "crawl" around the F.Fab line and jump over holes and pads The F.CrtYd line will "crawl" around the F.Fab line go around holes and pads

The generic class was placed in kicad-footprint-generator\KicadModTree\util so other can use it

Known issues: Can only handle a rectangle

A pad's specific "Net Pad clearance" distance is not used If this class is of interest to be used by others this could be fixed

This image demonstrate the result after the BatteryHolder.py have used StandardBox.py to create a footprint based on BatteryHolder.yml. bild

This image demonstrate how F.Silk and F.Crtyd beahve if a pad is in the "way" bild

Edited by Joel Guittet

Merge request reports