I am fresh to Teamcenter and just beginning my journey here. I have a connection open with TCUA in my code. I can few files in the system but am not sure how to use download files. I tried using WebClient and its downloading unusable 4kb files. I as well don't know how the FileManagementUtility is used to download a file from the db to my system.
I found a few referenced posts with very similar questions:
However, none of the answers go about explaining how to do this or link to a page that does.
Any help or links to pages with information on this process are greatly appreciated.
So this looks like its for downloading portions of a dataset. What if I want to download a single specific file? I see DownloadFileFromPLM() & DownloadFiletoLocation().
I have the files Uid and Object_string properties. Rather what I should say is I don't know how to get the ImanFile.
When I try to obtain any of the "IMAN" properties I can see, it returns:
The IMAN_Rendering property is not loaded in the client model.
The other two properties are IMAN_based_on and IMAN_external_object_link.
I have the tc_data/soa/policies/Default.xml open, but this doesn't necessarily translate on how to do this for my c# solution. How do I set a property policy in c# via code or do I need an xml doc such as this included in the project?
Created new topic that better suited the question
FileManagementUtility fmu = new FileManagementUtility(Teamcenter.ClientX.Session.getConnection());
fmu.GetFileToLocation(stl, "C:/Users/jtth/Desktop/TestFolder/" + stl.Object_string, null, null);
Exception thrown: 'System.IO.FileNotFoundException' in TcSoaClient.dll
Exception thrown: 'System.NullReferenceException' in TcSoaClient.dll
Object reference not set to an instance of an object.