KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_bom_help_md.h
Go to the documentation of this file.
1// Do not edit this file, it is autogenerated by CMake from the .md file
2_HKI( "# 1. Summary\n"
3"\n"
4"The Bill of Materials tool creates a BOM which lists all of the components in the design.\n"
5"\n"
6"The tool uses an external script to generate a BOM in the desired output format. Choosing a different script changes how the BOM is formatted.\n"
7"\n"
8"Generating a BOM is described in more detail in the Schematic Editor manual.\n"
9"\n"
10"# 2. Usage\n"
11"\n"
12"Select a generator script in the **BOM generator scripts** list. Details for the selected generator are shown on the right of the dialog.\n"
13"\n"
14"Clicking the **Generate** button creates a BOM file with the selected generator.\n"
15"\n"
16"The default settings present several generator script options, although some additional scripts are installed with KiCad and can be added to the list with the **+** button.\n"
17"\n"
18"**Note:** On Windows, there is an additional option **Show console window**. When this option is unchecked, BOM generators run in a hidden console window and any output is redirected and printed in the dialog. When this option is checked, BOM generators run in a visisble console window.\n"
19"\n"
20"# 3. Custom generators and command lines\n"
21"\n"
22"Internally, KiCad creates an intermediate netlist file in XML format that contains information about all of the components in the design. A BOM generator script converts the intermediate netlist file to the desired output format. KiCad runs the BOM generator scripts according to the command line entered at the bottom of the BOM dialog.\n"
23"\n"
24"The command line format accepts parameters for filenames. Each formatting parameter is replaced with a project-specific path or filename. The supported formatting parameters are:\n"
25"\n"
26" * `%I`: absolute path and filename of the intermediate netlist file, which is the input to the BOM generator\n"
27" * `%O`: absolute path and filename of the output BOM file (without file extension)\n"
28" * `%B`: base filename of the output BOM file (without file extension)\n"
29" * `%P`: absolute path of the project directory, without trailing slash\n"
30"\n"
31"**Note:** the `%O` output file parameter does not include a file extension. KiCad will attempt to add an appropriate extension to the command line automatically, but an extension may need to be added by hand.\n"
32"\n"
33"Python is the recommended tool for BOM generator scripts, but other tools can also be used.\n"
34"\n"
35"## Example command lines for Python scripts\n"
36"\n"
37"The command line format for a Python script is of the form:\n"
38"\n"
39"```\n"
40"python <script file name> <input filename> <output filename>\n"
41"```\n"
42"\n"
43"On Windows, if the desired generator script for a CSV BOM is `C:\\Users\\username\\kicad\\my_python_script.py`, the command line would be:\n"
44"\n"
45"```\n"
46"python.exe C:\\Users\\username\\kicad\\my_python_script.py \"%I\" \"%O.csv\"\n"
47"```\n"
48"\n"
49"On Linux, if the desired generator script for a CSV BOM is `/home/username/kicad/my_python_script.py`, the command line would be:\n"
50"\n"
51"```\n"
52"python /home/username/kicad/my_python_script.py \"%I\" \"%O.csv\"\n"
53"```\n"
54"\n"
55"Double quotes (`\"`) around the arguments are recommended in case filenames contain spaces or special characters.\n"
56"" );
#define _HKI(x)