Skip to content

Ability to upload schematic BOMs to projects, not only PCB BOMs #983

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

barisgit
Copy link
Contributor

@barisgit barisgit commented Aug 3, 2025

As #907 already outlines, currently only ability to import BOMs from KiCAD PCBNew is allowed. With this PR, there is now functionality to import BOMs from schematic as well as any other arbitrary CSV, thanks to a mapping step that maps input columns to output columns.

This is how it works:

  1. User selects "Import BOM" from project view where they opt to use the second option - Schematic BOM (supports any arbitrary CSV)
Screenshot 2025-08-03 at 18 41 56
  1. The file is parsed for columns, which are then presented to be mapped to data in PartDB (includes smart mapping suggestion, where users shouldn't need to change much)
Screenshot 2025-08-03 at 18 41 39
  1. There is also ability to select priority in case there are multiple columns that would map to same column
Screenshot 2025-08-03 at 18 41 47
  1. Upon submitting, server tries to connect parts to existing parts in the database, for others users can choose as is done with PCB BOMs as well
Screenshot 2025-08-03 at 18 43 31

Note: The system also validates CSVs and provides error messages in cases of invalid data
Screenshot 2025-08-03 at 18 41 18

Lines also get consolidated in case there are same components on different lines. Eg.:

  • Line1: C1, C3, C5; Qty 3; MPN 123456
  • Line 6: C6, C12, C13, C24; Qty 4; MPN 123456

would get saved as 7 parts with MPN 123456 of which designators are C1, C3, C5, C6, C12, C13 and C24.

@barisgit barisgit closed this Aug 3, 2025
@barisgit barisgit deleted the feature/upload-schematic-boms branch August 3, 2025 17:31
@barisgit barisgit restored the feature/upload-schematic-boms branch August 3, 2025 17:33
@barisgit barisgit reopened this Aug 3, 2025
@barisgit barisgit force-pushed the feature/upload-schematic-boms branch from f7c1a19 to 9cb9260 Compare August 3, 2025 17:41
@barisgit
Copy link
Contributor Author

barisgit commented Aug 3, 2025

I am sorry about these shenanigans, the branch is back to where it should be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant