" + refs +" | " + str(len(group))
+ row += " | " + c.getValue()
+ row += " | " + c.getLibName() + ":" + c.getPartName()
+ row += " | " + c.getDatasheet()
+ row += " | " + c.getDescription()
+ row += " | " + c.getField("Vendor")+ " |
"
+
+ html = html.replace('', row + "")
+
+# Print the formatted html to the file
+print(html, file=f)
diff --git a/bin/scripting/plugins/bom_html_with_advanced_grouping.py b/bin/scripting/plugins/bom_html_with_advanced_grouping.py
new file mode 100644
index 0000000..a091351
--- /dev/null
+++ b/bin/scripting/plugins/bom_html_with_advanced_grouping.py
@@ -0,0 +1,132 @@
+#
+# Example python script to generate a BOM from a KiCad generic netlist
+#
+# Example: Sorted and Grouped HTML BOM with advanced grouping
+#
+
+"""
+ @package
+ Generate a HTML BOM list.
+ Components are sorted and grouped by value
+ Fields are (if exist)
+ Ref, Quantity, Value, Part, Footprint, Description, Vendor
+
+ Command line:
+ python "pathToFile/bom_with_advanced_grouping.py" "%I" "%O.html"
+"""
+
+
+from __future__ import print_function
+
+# Import the KiCad python helper module and the csv formatter
+import kicad_netlist_reader
+import sys
+
+# Start with a basic html template
+html = """
+
+
+
+