devbisme / kinparse

A Parser for KiCad EESCHEMA netlists.
MIT License
23 stars 11 forks source link

Part Reference field doesn't include numbers #15

Closed galacticstudios closed 2 years ago

galacticstudios commented 2 years ago

I read the attached KiCad BURP.net file using parse_netlist and dumped the parts and their fields with the following code: `from kinparse import parse_netlist

nlst = parse_netlist("BURP.net")

for part in nlst.libparts: print(part.name) for field in part.fields: print(' ' + field.name + ': ' + field.value) print('') `

The Reference fields, which should have values like U1, J6, etc, don't have the numbers. They just have the letters (U, J, etc).

BURP.zip

galacticstudios commented 2 years ago

My mistake. I should be looking in nlst.parts, not libparts.