Improved documentation
This commit is contained in:
parent
8aaa2bb110
commit
baa8f570b8
|
|
@ -11,6 +11,7 @@ import argparse
|
|||
here = os.path.abspath(os.path.dirname(sys.argv[0]))
|
||||
|
||||
sys.path.append(here)
|
||||
sys.path.append(os.path.join(here,"KiBOM"))
|
||||
|
||||
from KiBOM.columns import ColumnList
|
||||
from KiBOM.netlist_reader import *
|
||||
|
|
|
|||
19
README.md
19
README.md
|
|
@ -9,6 +9,23 @@ KiBoM intelligently groups components based on multiple factors, and can generat
|
|||
|
||||
BoM options are user-configurable in a per-project configuration file.
|
||||
|
||||
## Usage
|
||||
|
||||
The *KiBOM_CLI* script can be run directly from KiCad or from the command line. For command help, run the script with the *-h* flag e.g.
|
||||
|
||||
python KiBOM_CLI.py -h
|
||||
|
||||

|
||||
|
||||
**netlist** The netlist must be provided to the script. When running from KiCAD use "%I"
|
||||
**--output / -o** If provided, this is the path to the BoM output. If not provided, the script will use the same name as the input file, with the suffix "_bom.csv"
|
||||
**--cfg** If provided, this is the BOM config file that will be used. If not provided, options will be loaded from "bom.ini"
|
||||
**--verbose / -v** Enable extra debugging information
|
||||
|
||||
To run from KiCad, simply add the same command line in the *Bill of Materials* script window. e.g. to generate a HTML output:
|
||||
|
||||

|
||||
|
||||
## Features
|
||||
|
||||
### Intelligent Component Grouping
|
||||
|
|
@ -107,7 +124,7 @@ Hit the "Generate" button, and the output window should show that the BoM genera
|
|||
### HTML Output
|
||||
The output HTML file is generated as follows:
|
||||
|
||||

|
||||

|
||||
|
||||
Here the components are correctly grouped, with links to datasheets where appropriate, and fields color-coded.
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,2 @@
|
|||
|
||||
import sys
|
||||
sys.path.append(".")
|
||||
import KiBOM
|
||||
from KiBOM import *
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 8.1 KiB |
Loading…
Reference in New Issue