Message 1 of 1
Checkout and Checkin using the api - Loosing ContentCenter in Vault
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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:
After:
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!