- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Guys,
I need to check in the multiple drawing files into vault by default macros in inventor.
For that, I tried using with the below code.
Sub CheckInMultipleOpenDrawings()
Dim oDoc As Inventor.Document
For Each oDoc In ThisApplication.Documents.VisibleDocuments
If oDoc.DocumentType <> kDrawingDocumentObject Then
GoTo NextDoc
ElseIf oDoc.DocumentType = kDrawingDocumentObject Then
oDoc.Save
Set ControlDefinition = ThisApplication.CommandManager.ControlDefinitions.Item("VaultCheckinTop")
ControlDefinition.Execute2 (True)
oDoc.Close
End If
NextDoc:
Next
MsgBox "Checked-in the drawings"
End Sub
In that it will checking in only one or two files. Not working for all the opened drawing files.
If u have any ideas to check multiple drawing files via macro..
Please suggest..
Solved! Go to Solution.