AnsweredAssumed Answered

PackAndGo not Open file

Question asked by Paine Zeng on Nov 25, 2016
Latest reply on Nov 26, 2016 by Paine Zeng

Hello everyone: Can we use the pack and go function to copy the solidworks files with not open the file?



the code of api like this:

' Open assembly
        openFile = "C:\Program Files\SOLIDWORKS Corp\SOLIDWORKS\samples\tutorial\advdrawings\handle.sldasm"
        swModelDoc = swApp.OpenDoc6(openFile, swDocumentTypes_e.swDocASSEMBLY, swOpenDocOptions_e.swOpenDocOptions_Silent, "", errors, warnings)
        swModelDocExt = swModelDoc.Extension



can we get the extension for unopend file?


if we use      depends = swApp.GetDocumentDependencies(sourcefile, 1, 1) the copy the file ,then use the ReplaceReferencedDocument function ,we can't get the drawing.


is there have a other way to do it?