diff --git a/KiBOM/preferences.py b/KiBOM/preferences.py index bbb75e17..830cfd2e 100644 --- a/KiBOM/preferences.py +++ b/KiBOM/preferences.py @@ -80,11 +80,11 @@ class BomPref: cf.add_section(self.SECTION_GENERAL) cf.set(self.SECTION_GENERAL, "; General BoM options here") - cf.set(self.SECTION_GENERAL, "; If ignore_dnf option is set to 1, rows that are not to be fitted on the PCB will not be written to the BoM file") + cf.set(self.SECTION_GENERAL, "; If {opt} option is set to 1, rows that are not to be fitted on the PCB will not be written to the BoM file".format(opt=self.OPT_IGNORE_DNF)) cf.set(self.SECTION_GENERAL, self.OPT_IGNORE_DNF, 1 if self.ignoreDNF else 0) - cf.set(self.SECTION_GENERAL, "; If number_rows option is set to 1, each row in the BoM will be prepended with an incrementing row number") + cf.set(self.SECTION_GENERAL, "; If {opt} option is set to 1, each row in the BoM will be prepended with an incrementing row number".format(opt=self.OPT_NUMBER_ROWS)) cf.set(self.SECTION_GENERAL, self.OPT_NUMBER_ROWS, 1 if self.numberRows else 0) - cf.set(self.SECTION_GENERAL, "; If group_connectors option is set to 1, connectors with the same footprints will be grouped together, independent of the name of the connector") + cf.set(self.SECTION_GENERAL, "; If {opt} option is set to 1, connectors with the same footprints will be grouped together, independent of the name of the connector".format(opt=self.OPT_GROUP_CONN)) cf.set(self.SECTION_GENERAL, self.OPT_GROUP_CONN, 1 if self.groupConnectors else 0) cf.add_section(self.SECTION_IGNORE) diff --git a/README.md b/README.md index 2cfff055..10d6f7a8 100644 --- a/README.md +++ b/README.md @@ -59,11 +59,14 @@ Output file format selection is set by the output filename. e.g. "bom.html" will BoM generation options can be configured (on a per-project basis) by editing the *bom.ini* file in the PCB project directory. This file is generated the first time that the KiBoM script is run, and allows configuration of the following options. * Number Rows: Add row numbers to the BoM output * Ignore DNF: Component groups marked as 'DNF' (do not fit) will be excluded from the BoM output -* Ignore Columns: A list of columns can be marked as 'ignore', and will not be output to the BoM file. By default, the *Part_Lib* and *Footprint_Lib* columns are ignored. * Group Connectors: If this option is set, connector comparison based on the 'Value' field is ignored. This allows multiple connectors which are named for their function (e.g. "Power", "ICP" etc) can be grouped together. +* Ignore Columns: A list of columns can be marked as 'ignore', and will not be output to the BoM file. By default, the *Part_Lib* and *Footprint_Lib* columns are ignored. +* Exclude Component Values: A list of regular expressions to ignore components based on their value +* Exclude Component References: A list of regular expressions to ignore components based on their reference +* Exclude Component Footprints: A list of regular expressions to ignore components based on their footprint Example configuration file (.ini format) -![alt tag](example/config.png?raw=True "Configuration") +![alt tag](example/ini.png?raw=True "Configuration") ## Example diff --git a/example/config.png b/example/config.png deleted file mode 100644 index 8d2838fb..00000000 Binary files a/example/config.png and /dev/null differ diff --git a/example/ini.png b/example/ini.png new file mode 100644 index 00000000..25fbc069 Binary files /dev/null and b/example/ini.png differ