Message 1 of 3
Revision Table Style

Not applicable
05-19-2017
07:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to update Revision tables with this code. After it runs if I click on the revision table it shows it is now "Revision Table" style, but if I change it to By Standard which is using "Revision Table" it changes and is now really using the style. It also exhibits a very strange behavior if I switch it back and forth between By Standard and Revision Table it moves up the sheet.
What am I missing? Also ideally I would like it to end up as By Standard, but I haven't been able to figure out how to do that.
Thanks for any assistance.
Dim oDocStyles As Inventor.DrawingStylesManager Set oDocStyles = oDoc.StylesManager Dim oRevStyle As RevisionTableStyle Set oRevStyle = oDocStyles.RevisionTableStyles.Item("Revision Table") Dim oRevisionTable As RevisionTable Set oRevisionTable = oDoc.Sheets(1).RevisionTables(1) oRevisionTable.Style = oRevStyle oDoc.Update