SchrodingersGat / KiBoM

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

Ignore virtual components #41

Closed leoheck closed 4 years ago

leoheck commented 5 years ago

Virtual footprints should be ignored by default. I suggest a flag (-a) to show all. For example, I have a footprint that is a logo. It should not be on BOM because I don't need to by a logo :)

easyw commented 5 years ago

virtual footprints are often used to show/hide mechanical parts (i.e. enclosure, standoff etc.) and they need to be in BOM list.

SchrodingersGat commented 5 years ago

@leoheck you can add a filter to the bom settings file to remove any items you do not want to appear in the bom output. This is pretty flexible and should allow you to achieve what you want. As @easyw says there are certainly good reasons for including parts that don't actually have a footprint associated.

leoheck commented 5 years ago

@SchrodingersGat thanks for pointing me that.

leoheck commented 5 years ago

I am using [REGEX_EXCLUDE] and it works fine, thanks.

But why it is tab separated?

It took me a while to make it work and I fixed it even before I could find this comment: ; Format is: "ColumName Regex" (tab-separated)

The best thing to do is to use whitespace separated (spaces, tabs)*

SchrodingersGat commented 5 years ago

Whitespace does make sense. Submit a PR and I'll merge the heck out of it :)

KarlZeilhofer commented 4 years ago

But why it is tab separated?

Perhaps because a regex can contain space characters, but not tabulators?

leoheck commented 4 years ago

What? I didn't get it.

leoheck commented 4 years ago

@KarlZeilhofer I see what you said now. I think it is not a big issue.

SchrodingersGat commented 4 years ago

Closed by https://github.com/SchrodingersGat/KiBoM/pull/61