I have recently upgraded from Solidworks 2010 to 2011. I have two macros I use that save files. The first saves the file with a serial number and name. The second is used to save a drawing as a PDF. I have the same issue with both macros. Right before or during the SaveAs3 line in the macro code it seems to crash. I don't get an error message but I know the macro has stopped because right after that point a message box should appear saying the file has been saved. The macros work until this point. They modify the file properties as they should.
In an attempt to troubleshoot I recorded a macro of manually saving a file. I had a weird typo when the code was recorded.
longstatus = swDoc.SaveAs3("D:\PROJECTS\1256 TANKE", 2000 GALLON, FRANKLIN COUNTY\RELEASED DRAWINGS\Part4.SLDPRT", 0, 0)
This is the line that was recorded with the macro. There should be an R after TANKE and no quotation mark.
I was wondering if anybody else was experiencing issues with file saving macros or should I just try a complete reinstall.
Thanks
SolidworksApi macros