Git Product home page Git Product logo

Comments (4)

qu1ck avatar qu1ck commented on June 26, 2024

The CLI help has some info (it's also on the wiki in usage page).

In short, that feature is used for board variants. You choose a field that contains variant name and the whitelist/blacklist will get populated with various values that your variant field has. You can then choose whitelisted variants (only components that have field set to one of the whitelisted values will be in the bom) or blacklisted variants (only components that don't have one of the blacklisted values will be in the bom).

You can also use it for other things like filtering out the tht/smd if you add a field for that and select it as variant.

from interactivehtmlbom.

gwideman avatar gwideman commented on June 26, 2024

OOOoooh... I get it now. Somehow I didn't realize this was associated with the Variant feature (which I had not previously tried).

I now see that if I establish a particular field on components, and provide it with a value from some limited set of values, then this feature can filter those components.

OK, checkmark that value in the whitelist to include, checkmark blacklist to exclude.
Is there some particular logic when a value has a checkmark for both whitelist and blacklist. Or neither?

I see that filtering applies to the BOM table, but it does not seem to operate on the board image, where all components seem to appear regardless, is this right?

Here's our use case: we highly favor the image of the board showing only the footprints of components pertaining to a selected variant, and omitting any other components.

One particular problem where that clarity is important is when the components of alternative variants occupy the same space on the board. For example we have a number of boards that contain alternative power supplies (say for Mains input, or 12VDC etc) that should be populated with one or another set of components.

The two (or more) sets of components occupy different sets of footprints, but those footprints all occupy the same board region, with one set of footprints overlapping the other set of footprints. Part of the point of a variant-specific BOM and board image (which we currently make partly manually) is to make absolutely clear which footprints are to be populated, and which not. Graphics from the other overlapping components irrelevant to the particular build are a significant distraction.

Anyhow, hopefully this use case provides some input for future consideration. Thanks.

from interactivehtmlbom.

qu1ck avatar qu1ck commented on June 26, 2024

Is there some particular logic when a value has a checkmark for both whitelist and blacklist. Or neither?

Whitelist takes precedence. There is no reason to use whitelist and blacklist at the same time.

I see that filtering applies to the BOM table, but it does not seem to operate on the board image, where all components seem to appear regardless, is this right?

Yes, that is intentional, like I mentioned in the other issue, board render is supposed to always show what the board actually looks like. Use "mark when checked" and "dnp outlined" features in html to affect rendering.

from interactivehtmlbom.

gwideman avatar gwideman commented on June 26, 2024

OK, thanks for your answer.

from interactivehtmlbom.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.