So I've been struggling with this for a while now and I thinkI've figured out what the problem is, but I don't know how to fixit.
I've made a macro that creates PDF's from all drawings in adirectory. On a state change I use Dispatch to copy the files (partand drawing) to a directory outside the vault, add the revision tothe filename, open Solidworks and run the macro (using the /mswitch). Once the PDFs are created, the Dispatch script will deletethe files and move the PDF to a central location for Purchasing andQuality.
The problem I have is if the Enterprise add-in is loaded inSolidworks, then the macro will not run, nor will I be able to runor edit any other macros until I unload the add-in and restartSolidworks, 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 filesthat have been copied from the vault with the Enterprise add-inloaded?
I've noticed that when files are copied from the vault, they areread-only. I thought that might have been the problem, so I hadDispatch do an xcopy on the files to remove the read-onlyattribute, but that didn't fix the problem. However, when I try toopen those files in Solidworks and if I'm not logged in toEnterprise, it will ask me to log-in, even though the files are notin the vault. There must be something that is linking these filesto the vault and I think that might be my problem.
Sorry for the long post!
AdamSolidworksSolidworks Pdm enterprise Pdm
I've made a macro that creates PDF's from all drawings in adirectory. On a state change I use Dispatch to copy the files (partand drawing) to a directory outside the vault, add the revision tothe filename, open Solidworks and run the macro (using the /mswitch). Once the PDFs are created, the Dispatch script will deletethe files and move the PDF to a central location for Purchasing andQuality.
The problem I have is if the Enterprise add-in is loaded inSolidworks, then the macro will not run, nor will I be able to runor edit any other macros until I unload the add-in and restartSolidworks, 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 filesthat have been copied from the vault with the Enterprise add-inloaded?
I've noticed that when files are copied from the vault, they areread-only. I thought that might have been the problem, so I hadDispatch do an xcopy on the files to remove the read-onlyattribute, but that didn't fix the problem. However, when I try toopen those files in Solidworks and if I'm not logged in toEnterprise, it will ask me to log-in, even though the files are notin the vault. There must be something that is linking these filesto the vault and I think that might be my problem.
Sorry for the long post!
AdamSolidworksSolidworks Pdm enterprise Pdm