Improved xml outpu

This commit is contained in:
Oliver 2016-05-15 16:33:10 +10:00
parent 59e5b1bd4c
commit 22a9dcfb58
1 changed files with 5 additions and 3 deletions

View File

@ -19,9 +19,11 @@ def WriteXML(filename, groups, net, headings, prefs):
return False
xml = ElementTree.Element('KiCAD_BOM', attrib = {
'source' : net.getSource(),
'version' : net.getVersion(),
'date' : net.getDate(),
'Schematic_Source' : net.getSource(),
'Schematic_Version' : net.getVersion(),
'Schematic_Date' : net.getSheetDate(),
'BOM_Date' : net.getDate(),
'KiCad_Version' : net.getTool(),
'groups' : str(len(groups)),
'components' : str(sum([group.getCount() for group in groups]))
})