Checkout and Checkin using the api - Loosing ContentCenter in Vault

Checkout and Checkin using the api - Loosing ContentCenter in Vault

UBNTI
Advocate Advocate
299 Views
0 Replies
Message 1 of 1

Checkout and Checkin using the api - Loosing ContentCenter in Vault

UBNTI
Advocate
Advocate

Hi,

I try to checkout a file (make a change) and check it in again. 

This is working, but if I have a look in the Vault Ribbon "Uses" all the ContentCenter Parts are lost in the list (All other Parts and Assemblies are still there).

If I manually checkout the file and open it in Inventor and check it in again - the ContentCenter Files are back in the list.

 

Before:

UBNTI_0-1614694002040.png

 

After:

UBNTI_1-1614694434357.png

 

 

The code I use to checkin:

 

 

 

Dim par As ACW.FileAssocParam = New ACW.FileAssocParam()
                        par.CldFileId = myFileAssocLite.CldFileId
                        par.RefId = myFileAssocLite.RefId
                        par.Source = myFileAssocLite.Source
                        par.Typ = myFileAssocLite.Typ
                        par.ExpectedVaultPath = myFileAssocLite.ExpectedVaultPath
                        fileAssocParams.Add(par)

Dim CheckInBom As ACW.BOM = m_conn.WebServiceManager.DocumentService.GetBOMByFileId(file.Id)

m_conn.FileManager.CheckinFile(New Vault.Currency.Entities.FileIteration(m_conn, checkOutFile), "Comment", False, myFileAssocParamArray, CheckInBom, False, Nothing, fileitermain.FileClassification, False, Nothing)

 

 

Please can somebody help me and see whats wron with this?

 

Thanks!

 

 

0 Likes
300 Views
0 Replies
Replies (0)