Closed mdeweerd closed 1 year ago
Hi @mdeweerd !
Did you try using the diff
command to compare the CSVs? This is how developers compare code looking for changes.
Well, I used Notepad to be able to find "in line" differences more easily and update the differences as I reorgized the lines (when U8 is added to U10, U10 becomes "U8,U10" and the new line order does not help with comparing). Here is a screenshot:
Still, 47 new components, 1 to remove and 5 to replace.
Comparing this way is an error prone and tedious task, I forgot to remove a line, update a quantity, etc (caught by multiple methods of verification).
I always look for ways to make less mistakes.
Stale, closing (limiting my issue backlog).
Use cases
Current method
To make this comparison, I exported the XLSX files generated by KiCOST into CSV files and made a textual comparison of the two. That is not only error prone, I still need to create a new BOM to prepare ordering the extra components.
Proposed evolution
KiCost could help with this if we could provide the target variant expression and the original variant expression.
KiCost would then build a BOM indicating the components that need to be added with a positive count, and components that need to be removed with a negative count. This list can also be used to ensure that the change made to the variant expression has the expected impact.