Merge pull request #42

Add new symbol field support for easyeda2kicad.py
This commit is contained in:
Benny Megidish
2023-03-14 11:40:41 +02:00
committed by GitHub
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -43,8 +43,8 @@ Add an 'LCSC Part #'* field with the LCSC component part number to the symbol's
_The fields will be query in the order denoted above._
#### Fallback Fields*:
| 'lcsc#' | 'LCSC' | 'JLC' | 'MPN' | 'Mpn' | 'mpn' |
| --- | --- | --- | --- | --- | --- |
| 'JLC Part' | 'LCSC Part' | 'lcsc#' | 'LCSC' | 'JLC' | 'MPN' | 'Mpn' | 'mpn' |
| --- | --- | --- | --- | --- | --- | --- | --- |
_The fields will be query in the order denoted above._
+1 -1
View File
@@ -249,7 +249,7 @@ class ProcessManager:
def _get_mpn_from_footprint(self, footprint: str):
''''Get the MPN/LCSC stock code from standard symbol fields.'''
keys = ['LCSC Part #', 'JLCPCB Part #']
fallback_keys = ['LCSC', 'JLC', 'MPN', 'Mpn', 'mpn']
fallback_keys = ['LCSC Part', 'JLC Part', 'LCSC', 'JLC', 'MPN', 'Mpn', 'mpn']
for key in keys:
if footprint.HasProperty(key):