-
Notifications
You must be signed in to change notification settings - Fork 1
Setup Footprints
Stock footprints can be added in via 2 fields:
- Footprint
- Footprint.Mask
This is the fully qualified footprint as used in KiCad, for example: Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P5.08mm_Vertical
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: ~(
So a number 1234 could be matched with: {<0-9>} A floating point number 1234.22 with: {<0-9>}(.{<0-9>}|)