- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, I am looking to open 10-20 drawings, then update a few iproperties for each drawing, I'll either increase the rev, change the date, or change the author. I have the code working for individual drawings and have found code that will cycle through each open document but the code only updates the active open document. Here is the basic loop that I'm trying before I get more complex.
Dim oDoc As Document For Each oDoc In ThisApplication.Documents.VisibleDocuments If oDoc.DocumentType = kDrawingDocumentObject Then iProperties.Value("custom", "RevNum") = "E" End If Next oDoc
I have tried a simple line of code to modify the iproperties on a drawing that is open but is not the current active document and it doesn't seem to work as it can't find the file (file is called test.idw and is open but not active)
iProperties.Value("test.idw", "custom", "RevNum") = "E"
Solved! Go to Solution.