SchrodingersGat / KiBoM

Configurable BoM generation tool for KiCad EDA (http://kicad.org/)
MIT License
352 stars 95 forks source link

fit_field not working on Win7 #144

Open aiotech-pub opened 3 years ago

aiotech-pub commented 3 years ago

I have a bom.ni local file where:

; Field name used to determine if a particular part is to be fitted fit_field = FIT

then to test KiBoM I edited a capacitor (C4) on the schematic adding the FIT field filled with: "+a,-b"

this is my command as typed in Kicad: python "C:\Dati\Kicad\scripts\KiBoM-master/KiBOM_CLI.py" "-r b" "%I" "%O.html"

on the html file I would expect to don't see C4 listed, instead it is listed and the field on the FIT column contains "+a,-b"

this is my command as typed in Kicad: python "C:\Dati\Kicad\scripts\KiBoM-master/KiBOM_CLI.py" "-r a" "%I" "%O.html"

on the html file I would expect to see C4 listed, it is listed and the field on the FIT column contains "+a,-b"

In general terms I would expect a different behaviour: if -r present on the command row: in FIT only fields containing - and + will be considered and the output will be produced with or without them only reporting texts not containing - and + (for instance dnf), if all the fileds will be empty or no dnf (And similar) texts are not found the column will not br printed if -r not present on the command row: only reporting texts not containing - and + (for instance dnf) if all the fileds will be empty or no dnf (And similar) texts are not found the column will not br printed

eeintech commented 3 years ago

@aiotech-pub Have you tried this command instead: python "C:\Dati\Kicad\scripts\KiBoM-master/KiBOM_CLI.py" -r a "%I" "%O.html"

It looks like there are two proposed fixes for the variant logic: #136 and #137 Could be related.

set-soft commented 3 years ago

I'll suggest trying https://github.com/INTI-CMNB/KiBoM this fork has #137 fix