Hey,
I've looked into this issue, so I guess I'm adding to the pile:
Could someone open this in a version of solidworks other than 2013 and repost the text, please?
This is a pretty crazy bug, seems like it would be trivial to save a backup automatically.
I guess that's why this is an older version.
SolidworksApi macros