- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello all,
I have a bit of code that i created with Inventor 2016. We recently updated to Inventor 2018 and now my code is not working properly. I have tried figuring out how to fix the problem and I'm stumped.
Sub Main RemoveAllTags() Dim oDrawDoc As Inventor.DrawingDocument = ThisApplication.ActiveDocument Dim i As Integer = 1 Dim oRTB As RevisionTable = oDrawDoc.ActiveSheet.RevisionTables.Item(i) Dim oRow As RevisionTableRow Dim oSheet As Sheet For Each oSheet In oDrawDoc.Sheets oSheet.Activate oSheet.Update Try 'try to get the first rev table on the active sheet oRTB = oDrawDoc.ActiveSheet.RevisionTables.Item(i) Catch 'catch error when no rev table is found MessageBox.Show("Error: No Revision Table was found", "iLogic") End Try Dim oRows As RevisionTableRows oRows.Add() For Each oRow In oRows If oRow.IsActiveRow Then Else oRow.Delete End If Next oRTB.Delete Next End Sub
This is my original code snippet that has ceased to work. I have done some troubleshooting on it and have found that it breaks on "oRows.add()". If anyone can help me on this I would greatly appreciate it. Attached is the Error in Rule that pops up when i run the code.
thanks
Solved! Go to Solution.
Link copied