New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add simple BOM export dialog to schematic/board editors #499
Conversation
Cool! Does this list all attributes or only "MPN"? I often add a "Digikey" key with the order number to the attributes, would be nice if such fields could be included in the BOM too. |
Currently only "MPN".
Good point, I'll check if I can make the columns configurable. |
Hi, |
Yeah! This is enough for simple BOM. For future we need little bit more complicated BOM setup and field mapping (MPN, Datasheet, Some user attributes,.. ) depends on PCB variant, or assembly variant (one PCB/schema with more combination of assembled/not assembled devices ..... maybe implemented as new feature ;-) )... |
Done - instead of hardcoding the "MPN" column, arbitrary attributes can now be added as columns: In addition, I added commands to the CLI to export BOMs so this can now be automated too.
Components which are marked as "Schematic only" in the library aren't included in the BOM since those can't be placed on a board anyway. This should already catch most of the no-BOM components. Everything more than this would introduce a file format change, and I think it makes more sense to wait until we have a clear concept for handling MPNs, datasheets, assembly variants etc. Of course this is only a very simple BOM export, but since this implementation doesn't affect the file format, it's a good first step until we implement a much more feature-rich BOM handling |
To export the BOM of a project.
Add simple BOM export dialog to schematic/board editors (cherry picked from commit 4df88fb)
Although the library does not yet really support part handling (with MPN etc.), it's still possible (and useful) to generate simple BOMs just by iterating over all devices on a board. And if needed, MPNs can be added to the components (in schematics) by using attributes.
The CSV output then looks like that: