Showing results for 
Search instead for 
Do you mean 
Reply

fileManagementUtility.GetFileToLocation c# problem

Hi,

in teamcenter10,

we are trying to download a file using FileManagementUtility.GetFileToLocation. but it seems that it does nothing, no matter what we specify as parameters

 

 var resp1 = fileManagementUtility.GetFileToLocation(null, null, null, null);

or 

 

        var resp2 = fileManagementUtility.GetFileToLocation(contents1[0], "C:\\", null, null);

can you please  give us an example for a correct usage ?

5 REPLIES

Re: fileManagementUtility.GetFileToLocation c# problem

Hi, 

In GTAC there is a FAQ showing the download of a file using Java. Should be easy to transfer this to C#.

xtof

Re: fileManagementUtility.GetFileToLocation c# problem

Hi Xtof,

 

Thank for your quick response. Unfortunately, we are not able to find an FAQ section on the official GTAC website ( http://www.plm.automation.siemens.com/en_us/support/gtac/ .

 

Can you, please, provide a direct link, or a particular solution that you have in mind?

 

Best regards

Re: fileManagementUtility.GetFileToLocation c# problem

You need your webkey, then go to https://solutions.industrysoftware.automation.siemens.com/

Search for "Correctly use FileManagementUtility.getFileToLocation" and it should get you to the FAQ.

Re: fileManagementUtility.GetFileToLocation c# problem

I have done the same in C#, but using "DownloadFilesToLocation". You can check the same in below link:

 

http://community.plm.automation.siemens.com/t5/Teamcenter-Administrators-Forum/Export-file-stored-in...

Re: fileManagementUtility.GetFileToLocation c# problem

thanx  for your help Smiley Happy