Git Product home page Git Product logo

Comments (2)

qu1ck avatar qu1ck commented on June 7, 2024

This is an interesting idea. Needs a config dialog so it will go in v2.
From KiBom docs:

To generate a BoM with a custom Variant, the --variant flag can be used at the command line to specify which variant is to be used.

If a variant is specified, the value of the fit_field field is used to determine if a component will be included in the BoM, as follows:

If the fit_field value is empty / blank then it will be loaded in ALL variants.
If the fit_field begins with a '-' character, if will be excluded from the matching variant.
If the fit_field begins with a '+' character, if will ONLY be included in the matching variant.
Multiple variants can be addressed as the fit_field can contain multiple comma-separated values.

e.g. if we have a PCB with three components that have the following values in the fit_field field:

C1 -> "-production"
C2 -> "+production"
R1 -> ""
If the script is run with the flag --variant production then C2 and R1 will be loaded.

If the script is run without the --variant production flag, then C1 and R1 will be loaded

from interactivehtmlbom.

qu1ck avatar qu1ck commented on June 7, 2024

This is implemented now with config dialog and command line options. No single commit to link here, it was a bunch of work since v1.1 tag.

You can select which extra field corresponds to "board variant" and can whitelist or blacklist arbitrary values.

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.