Message 1 of 5
Have anybody gotten the Vault Check-in snippet to work?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
The following snippet comes with the R2024 installation, but when I try to run it it does absolutely nothing. No errors, no nothing. Anybody got any good ideas of how to make it work?
Sub CheckIn()
Try
ThisDoc.Save
Dim oControlDef As Inventor.ControlDefinition
oControlDef = ThisApplication.CommandManager.ControlDefinitions.Item("VaultCheckinTop")
oControlDef.Execute2(True)
Catch ex As Exception
Logger.Error("Undo Check-In failed; likely, the file wasn't checked out.")
End Try
End Sub