BPJWES / KiCAD_Partslist_editor

MIT License
10 stars 5 forks source link

KiCad Partslist Editor

KiCad Partslist Editor (PLE) allows you to export/import customizable fields from a hierarchical KiCad schematic file to and from a CSV.

Tested with Python 3.5.2 on Linux Mint 18, with KiCad 4.0.7 and KiCad 5 (nightly)

Screenshot

Installation

Windows

Running KiCad Partslist-editor using windows, requires either Python 3 and TKinter, or you can run the compiled version, which can be found in the folder \build\exe.win32-3.4\

Linux

On linux you have to install python3 and python3-tk with
sudo apt-get install python3 python3-tk

Then you can run the part list editor with python3 PartsListEditor.py or just use the minimal shell script kicad-partlist-editor-linux.sh

Usage

NOTE: the columns Reference, Unit and File must not be edited in the CSV file.

Deprecated

These functions need a scrollable canvas to be useful.

Advanced Usage

To change the fields that the KiCad PLE imports, exports and edits, edit the FieldKeywords.conf file

The syntax of the FieldKeywords.conf file is: First line is version string, this should not be changed Lastline is end-of-file indicator

All lines starting with "<" define a field KiCad PLE will look for in .SCH files

The syntax of such a line is as follows:

<Fieldname|Field_alias1|Field_alias2|Field_alias3>

The Fieldname is the primary alias, so it can be considered Field_alias0 as well.

The amount of aliases which can be added is theoretically unlimited, but the minimum is 1 (i.e. the field name)

<MyFieldName> isn't supported, one has to declare it with an alias:
<MyFieldName|MyFieldName>

Further Ideas for Improvement

Extract Field Names from Schematics and CSV

Index Column

Commandline Interface

For scripting it would be nice, if the PLE could be used without any GUI.