[Fixed] Internal netlist generation when no lib

Related to #242
This commit is contained in:
Salvador E. Tropea 2022-08-29 08:37:12 -03:00
parent 9f54132c0f
commit bc793c8637
2 changed files with 7 additions and 1 deletions

View File

@ -37,6 +37,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- SCH Print and Netlist: name collisions. When the default name used by KiCad
belongs to an already existing file. (#244)
- Install checker: fixed problems to detect iBoM installed as plugin. (#209)
- Internal Netlist generation (i.e. iBoM with variants): problems withg
components that doesn't specify a library. (See #242)
### Changed
- The order in which main sections are parsed is now fixed.

View File

@ -1949,7 +1949,11 @@ class Schematic(object):
continue
libpart = SubElement(libparts, 'libpart')
res = k.split(':')
if res:
cres = len(res)
if cres == 1:
libpart.set('lib', '')
libpart.set('part', res[0])
elif cres == 2:
libpart.set('lib', res[0])
libpart.set('part', res[1])
if v.alias: