Ed Horne

API: Save active Part to Zip file w/file type selection Form

Discussion created by Ed Horne on Apr 20, 2015
Latest reply on Oct 10, 2017 by Christian Chu

Attached is the enhanced create Zip File macro. This version has a Form that allows the user to choose one or more of five file types to save to a Zip file.

I've tested it and I believe the code strategy has effectively overcome the VBA limitations and quirks. There are a couple of issues you need to be aware of as mentioned in the previous version thread.

One problem can occur depending on your Part file working folder permissions. If the Zip file has a padlock on it when it's finished it means that only you have access to it. You would need to save your part file to another less restricted folder and run the macro again.

The other issue relates to folder permissions. If SW created the temp folder to save the files to, I wasn't able to delete it. I was only able to delete the folder after I closed SW completely. The work around I use is a temp folder strategy, "C:\temp\TempSWFiles".

Feel free to post any issues or suggestions for enhancements.