- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I'm running into an issue checking in files through the API. I keep running into this error when trying to checkin files with :
InventorApp.CommandManager.ControlDefinitions["VaultCheckinTop"].Execute2(true);
I can't checkin the files through the Vault API because of our vault settings. I've managed to find a workaround by turning silent operations off, putting the current Inventor session in focus, call Doc.Close(false) then simulating an {ENTER} keypress to get past the save dialog. The only(major) issue with this is the timing between making the Inventor session window in focus and simulating the {ENTER} keypress; there are times where another process will sneak in there and take focus away before {ENTER} can be pressed.
Does anyone know of a way to set the save on close always yes and initiate the checkin(Or any suggestions on why my files aren't saving correctly to avoid the first checkin error)?
Thanks!
Solved! Go to Solution.