You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.1 KiB

  1. bom_?.py are some python scripts which read a generic xml netlist from eeschema,
  2. and create a bom.
  3. All examples use kicad_netlist_reader.py, which is a python utility to read
  4. and parse this generic xml netlist and create the corresponding data
  5. used to build the bom.
  6. You can modify them to build the bom you want.
  7. to use them, you should install python, and run:
  8. python bom_example?.py <netlist name> <bom list netname>
  9. See Eeschema doc, chapter 14 for info about the generic xml netlist format,
  10. and how to run a script from Eeschema to create a customized netlist or BOM.
  11. If the python comment
  12. """
  13. @package
  14. some comments
  15. """
  16. is added to the beginning of the python script, the comment will be displayed
  17. in Eescheam, in the BOM dialog
  18. For instance:
  19. """
  20. @package
  21. Generate a HTML BOM list.
  22. Components are sorted and grouped by value
  23. Fields are (if exist)
  24. Ref, Quantity, Value, Part, Datasheet, Description, Vendor
  25. """
  26. displays:
  27. Generate a HTML BOM list.
  28. Components are sorted and grouped by value
  29. Fields are (if exist)
  30. Ref, Quantity, Value, Part, Datasheet, Description, Vendor
  31. in BOM dialog