- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Vault users,
i need to update the last item version during the Inventor CheckinFile event
Basically when the drafter has finished his work, he upload the file to the server, and immediately
the Vault must update the Item link with the new file version. I DON'T WANT TO TO AN ITEM REVISION
In Vault 2013 i've done this with an extension, using the Vault SDK function "UpdateItemsFromFile(...)
In Vault 2015 this function was removed, and now i'm not able to do the same work with the new functions added.
Here there is my piece of partial-working code
' put the item in edit mode
Dim modItem As Item() = m_ServiceManager.ItemService.EditItems(New Long() {articolo.RevId})
' AS THE VAULT SDK GUIDE SAYS: "Begin an "update items from files" operation on a component-by-component basis"
m_ServiceManager.ItemService.UpdatePromoteComponents(New Long() {modItem(0).RevId}, ItemAssignAll.Yes, True)
' final commit and unlock item
m_ServiceManager.ItemService.UpdateAndCommitItems(modItem)
Checking the status of the item from the Vault client i see that it continues to point to the previous version of file!
To align all it's necessary to do an "Update item" manually ![]()
I cannot force a new item revision, and i don't know which changes has been made in the Inventor file
Is there a way to do it AGAIN (via extension like Vault 2013)?
Thanks in advance
Solved! Go to Solution.
