01-05-2021
03:25 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
01-05-2021
03:25 PM
@Anonymous
This is VBA not iLogic... If you want to run it as an iLogic rule you could use something like this ![]()
For Each oDoc As Document In ThisApplication.Documents.VisibleDocuments If oDoc.DocumentType <> DocumentTypeEnum.kDrawingDocumentObject Then Continue For oDoc.Activate 'Activate the drawing oDoc.Save ThisApplication.CommandManager.ControlDefinitions.Item("VaultCheckinTop").Execute2 (True) If oDoc IsNot ThisDoc.Document Then oDoc.Close Next MsgBox("Checked-in the drawings")
Jhoel Forshav
Download my free Inventor Addin - Hole Projector
LinkedIn | Ideas | Contributions | Blog posts | Website