Skip to content

Setup Footprints

HendriXML edited this page Oct 6, 2019 · 1 revision

Footprints

Stock footprints can be added in via 2 fields:

  1. Footprint
  2. Footprint.Mask

Footprint

This is the fully qualified footprint as used in KiCad, for example: Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P5.08mm_Vertical

Footprint.Mask

This is an wildcard expression which can match multiple KiCad footprints, for example: Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P((2.54|5.08)mm_Vertical|(7.62|10.16|15.24)mm_Horizontal)

The () specify a group in which alternatives can be defined, separated by | But also wild cards can be used like ?, or * Repeating groups: {} Numeric characters: <#9> Character ranges: <a-z|A-Z> Excluding of characters: <!y|p> % is a special wildcard, which eats up characters until it the succeeding character is met. In that case it will always continue matching. For example: %: Will match with First: but not with First:Second:

The special characters it self can be used when they're escaped with a ~, like: ~(

Match examples

So a number 1234 could be matched with: {<0-9>} A floating point number 1234.22 with: {<0-9>}(.{<0-9>}|)