AnsweredAssumed Answered

SetDocumentSaveToNames - Does anyone know if there is a functioning macro for this example from the SolidWorks Knowledge Base?

Question asked by Will Leung on Apr 11, 2019

The article is from:

2014 SOLIDWORKS API Help - SetDocumentSaveToNames Method (IPackAndGo)

and the example points you here: Pack and Go an Assembly (VBA):…


I'm using SolidWorks 2016 and I believe that a 'False' is being thrown out on this line:

status = swPackAndGo.SetDocumentSaveToNames(pgSetFileNames)

which I believe is stopping it from working correctly?


The prefixes and suffixes are being applied correctly, but it's not renaming the original files to incrementing numbers.