4

I've created a moc using Stud.io, bought the pieces and built it. Since it was unstable I've changed the model in Stud.io, and now I would like to buy just the pieces I've added. I could compare both version of the model manually to get the differences, but that would be somewhat cumbersome and error prone, so I'm wondering if there is some tool to compare two models, or two parts lists?

I'm thinking about something that could for example take two Bricklink XML files, and produces a new XML containing only the parts (and amount) not present in the older version.

  • You could try and import both XML files into Excel, then sort and compare. Probably the fastest way to do this. – Phil B. Mar 27 '18 at 18:09
  • Thanks, but I would consider that finding the differences manually, too. – Christian Mar 28 '18 at 10:50
6

Since there doesn't seem to be a tool, I've written my own one. In case anyone else want to use it, check it out here: https://github.com/ChrZae/bricklink-xml-diff

Take care tho, it can only really process the XML generated by Stud.io, the XML-format itself has more fields which I didn't care about (also no guarantees it will always work correctly).

2

I would use the winmerge tool:

http://winmerge.org/downloads/

XML files are text files. You can compare two text files with Winmerge and extract the differences... some manual labor would be involved if the same part is present in both lists but with different amounts, but I would expect this to be all rather straight forward...

  • Thanks, but I would consider that finding the differences manually, too. – Christian Mar 28 '18 at 10:50
  • @Christian all solutions are in some part manual. Of course, making this part smaller can be desirable. On the other hand, WinMerge is tried and true, deals really well with whitespaces etc, and using it allows user to correct mistakes on the fly. Your program may be all nice and fine, but it didn't have all that many testers. – Mołot Mar 29 '18 at 8:37
  • @Molot, on the other hand, parsing and writing XML is not that hard, there are tried and tested libraries... – Michael Verschaeve Mar 29 '18 at 8:45
  • @Mołot true, its bareley tested, but then again I trust myself even less when it comes to comparing 2K parts and finding the 200 differences and writing them up without making a single mistake, however good the diff-tool is ;) – Christian Mar 29 '18 at 9:03
  • @Christian winmerge can generate pretty good diff files. Then you'll have just a list of xml blocks added and removed. Rather straightforward, and I did it on things much more "important" (in the terms of $) than something like 200 bricks – Mołot Mar 29 '18 at 9:06

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.