Jacob, in order to save as IGES the model must be active. Check/try macro from this post: https://forum.solidworks.com/message/754106#comment-754106
And you can either convert the macro to batch mode OR use #TASK (free tool) to batch run your macro or use inbuilt tools in the task to save your files.
Thanks a bunch Deepak your definitely the man when it comes to this . In my code i attempted to put the line ahead of the iges saveas. but it complains about the object variable not set.
Set swModel = swApp.ActivateDoc3(swModel.GetPathName, False, swRebuildActiveDoc, nErrors)
'Save as IGES
swModel.Extension.SaveAs Filepath & FileName & ".igs", 0, 0, Nothing, nErrors, nWarnings
I ended up modifying the code you suggested and i got that to work even made use of the custom property revision.
Now i just have to work on running the macro in #task
File Save As PDF & IGS.swp.zip 15.1 KB