AnsweredAssumed Answered

Enterprise Add-In for Solidworks Breaks Macros

Question asked by Adam Meyer on Feb 11, 2009
Latest reply on Feb 13, 2009 by Adam Meyer
So I've been struggling with this for a while now and I think I've figured out what the problem is, but I don't know how to fix it.

I've made a macro that creates PDF's from all drawings in a directory. On a state change I use Dispatch to copy the files (part and drawing) to a directory outside the vault, add the revision to the filename, open Solidworks and run the macro (using the /m switch). Once the PDFs are created, the Dispatch script will delete the files and move the PDF to a central location for Purchasing and Quality.

The problem I have is if the Enterprise add-in is loaded in Solidworks, then the macro will not run, nor will I be able to run or edit any other macros until I unload the add-in and restart Solidworks, or restart the computer. If the add-in is not loaded, then the Dispatch script and macro work perfectly.

Is there something I need to add to my macro in order to open files that have been copied from the vault with the Enterprise add-in loaded?

I've noticed that when files are copied from the vault, they are read-only. I thought that might have been the problem, so I had Dispatch do an xcopy on the files to remove the read-only attribute, but that didn't fix the problem. However, when I try to open those files in Solidworks and if I'm not logged in to Enterprise, it will ask me to log-in, even though the files are not in the vault. There must be something that is linking these files to the vault and I think that might be my problem.

Sorry for the long post!