Skip to content

a tool to convert CSV output file of the BOM.ulp into neatly arranged excel file with an option to add distributor price using Octopart excel add-in.

License

Notifications You must be signed in to change notification settings

oferzv/eagle_bom_converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Eagle BOM Converter

a tool to convert CSV output file of the BOM.ulp into neatly arranged excel file with an option to add distributor price using Octopart excel add-in.

Features

  • convert a CSV BOM (exported from eagle) to excel format.
  • Removes unnecessary attributes.
  • Adding an index column.
  • Adding an header row.
  • Removes rows with EXCLUDE attribute from BOM.
  • Generate an excel BOM with Octopart formulas and price estimate.

Dependencies

  • Python3.
  • pandas.
    Install using pip:
pip install pandas
  • openpyxl.
    Install using pip:
pip install openpyxl

Usage

  1. add Part Attributes in eagle library.
    This script is searching for specific attributes in the csv file:
    • Parts = part designator.
    • Qty = part quantity.
    • MF = part manufacturer.
    • MPN = manufacturer part number.
    • VALUE = I use it for capcitors and resistors values.
    • FOOTPRINT = part package.
    • DESCRIPTION = I use the Description from Digi-key.

You can add those attributes to your parts or change the line of code that contains the attributes:

newDf = bomDf[['Qty', 'Parts','MF','MPN','VALUE','FOOTPRINT','DESCRIPTION']].copy()
  1. Export CSV BOM from Eagle:
    To generate a BOM file from Eagle make sure you are in the Schematic Editor and go to File > Export > BOM. This will open up a new window where you can configure how you want the BOM file to look like. Check Values and CSV option. Next you can save the bom.csv file to the desired location by clicking the Save button.

image

  1. Run the python script from command line:
[repo_path]/python bomToolGuiV3.py  

you will get this window:

image

Press the “select a file” button and chose the file to convert, the path for the file will appear in the text box. to generate the BOM press the “RUN” button on completion the text in path text box will change to “done select new file” the new file is saved in the same folder as the original CSV file.
Octopart - To generate a BOM with OCTOPART_DISTRIBUTOR_PRICE formula and total price caluclation column check the “Octopart” check box.

TO DO

  • improve column with auto size fit.
  • easy attribute customization.

About

a tool to convert CSV output file of the BOM.ulp into neatly arranged excel file with an option to add distributor price using Octopart excel add-in.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages