Dim swApp As SldWorks.SldWorks
Set swApp = Application.SldWorks
swApp.RunCommand swCommands_SaveAll, ""
In addition you can use also use swSaveAsOptions_SaveReferenced if you're using SaveAs for Top Level assembly.
Would I use "swSaveAsOptions_SaveReferenced" to save all my files and re-reference them to the working directory?
How would I use it?
Currently the files saved "as is" are currently:
1) The main assy and sub assy's are in the chosen working directory.
2) The parts reside separately in the library folders on the c drive....
I will next be looking to save all the parts to the working folder with the job number prefix added to the beginning of each part file name.
I was going to try to use a pack n go code from a macro but wasn't sure what was best and easiest.
Thanks for your advice and help!!
You can save the top level assembly in the last and then can call swSaveAsOptions_SaveReferenced
Then this would be similar to Save All call as far as I think else using the run command suggest by Artem would be best and easy to use.