Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to write an external rule that will cycle through all open drawings and fill in the "Eng. Approved By:" and "Eng. Approved Date:" item in the iproperties. The code I have will update the first drawing, then will cycle through all the open drawings, but will only update the drawings that was initially active. Can anyone see what I'm missing?
Dim oDoc As Document = ThisApplication.ActiveDocument Dim ApprovedBy As String = InputBox("Enter Approving Engineer's Intials", "Engineer Approval", "Initials") For Each oDoc In ThisApplication.Documents.VisibleDocuments If oDoc.DocumentType = kDrawingDocumentObject Then oDoc.Activate iProperties.Value("Status", "Engr Approved By") = ApprovedBy iProperties.Value("Status", "Engr Date Approved") = Now End If Next MessageBox.Show("All Open Drawings Approved.", "ApproveDwgs")
Thank you all so much!
Solved! Go to Solution.