Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
M1 = MessageBox.Show("Do you want to check Out all open files?", "Vault Check-out", MessageBoxButtons.YesNo, MessageBoxIcon.Question) If M1 = vbYes Then Dim oDoc As Inventor.Document Dim docs As Documents docs = ThisApplication.Documents For i = 1 To docs.VisibleDocuments.Count oDoc = docs.VisibleDocuments.Item(i) 'invoke Check In dialogbox ThisApplication.CommandManager.ControlDefinitions.Item("VaultCheckoutTop").Execute2(False) Next MessageBox.Show("Vault Check-out Complete!!!!", "Vault Check-out") Else MessageBox.Show("Not Successful!!!!","Vault Check-out") End If Return
This is the ilogic I want to use for checking out all the open visible files. But it only check out one file from vault and the stop to proceed the rest.
Could anyone have a look and help me fix it?
Solved! Go to Solution.