Hi,
I am working on Vault 2014.
Is there any relationship between part (.ipt) and drawing (.idw) files in Vault 2014 ?
How the hierarchy is maintained between part, assembly and drawing files in Vault 2014 ?
Regards,
Gauri.
Hi,
We are trying to change the properties of any ipt(Part) or idw(Drawing) file in Vault.
We are doing following steps :
1. Check out the file which we want to modify.
Code to chekout file :-
VDF.Vault.Settings.AcquireFilesSettings settings ;
VDF.Vault.Currency.Connections.Connection Conn ;
settings.AddFileToAcquire(selectedFile, VDF.Vault.Settings.AcquireFilesSettings.AcquisitionOption.Checkout);
VDF.Vault.Results.AcquireFilesResults result = Conn.FileManager.AcquireFiles(settings);
We get the checked out file from result. We are using checked out file to modify the attributes .(Please suggest, Is our **** ?)
2. Modify the attribute value and Update the value of any property of file.
API to updating file
Service1.ServiceManager.DocumentService.UpdateFileProperties(new long[] { checkedOutFiles.FirstOrDefault().File.EntityMasterId },
new long[] { attribute.Id }, new object[] { "xyz"});
3. Chekin that file.
File checkedinFile = Service1.ServiceManager.DocumentService.CheckinUploadedFile(checkedOutFiles.FirstOrDefault().File.EntityMasterId, "Changed Property value", false, System.DateTime.Now, null, null, false, null, FileClassification.None, false, null);
Now , problem statement is :-
We are doing all the following scenarios through code.
1. When we are checkin the checked out file, "ID" of that file is getting changed. Also if we chekcin the associated file (if any idw file is associated with part file) id of that file is also changing.
2. Prior to chekin the file, we are able to see the relation between part and drawing file. But after checkin part and drawing file, relation between both files does not exist anymore.
If I serach for association of chekin Part file, I am not getting its associated files.
3. If we checkin only Part file not the associated drawing file, in that case we are getting its association properly.
Refer attached image named "Association.png" which shows relation between part and drawing file.
Please let me know if anyone has faceed such kind of issue. OR Correct us if we are following wrong steps ?
Regards,
tadakeg.