I am trying to retrieve a copy of a file to my local cacheand I'm using GetFileCopy to do it.
When my program tries to access the excel file, it can't find it.
Can anyone tell me if there is something wrong with my code:
I'm not sure if I'm getting the code wrong, or gettingsomething else wrong. I've got this code on the "form_load" part ofthe program. So it should be copying it down to the local cache assoon as the form loads.
This program runs fine after the user checks the file out andchecks it back in, so it seems like it's an issue with it not beingin the local cache.SolidworksSolidworks Pdm enterprise Pdm
When my program tries to access the excel file, it can't find it.
Can anyone tell me if there is something wrong with my code:
Dim GetExcel As IEdmFile5 Dim ExcelFolder As IEdmFolder5ExcelFolder = vault.GetFolderFromPath(vault.RootFolderPath +"\_Administrator Files\") GetExcel =ExcelFolder.GetFile("ITEM.XLS")GetExcel.GetFileCopy(Me.Handle.ToInt32, 0, ExcelFolder.ID,EdmGetFlag.EdmGet_Simple, "")
This program runs fine after the user checks the file out andchecks it back in, so it seems like it's an issue with it not beingin the local cache.SolidworksSolidworks Pdm enterprise Pdm