Message 1 of 3

Not applicable
04-20-2016
07:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Using some snippets from other threads, I created this rule (below) to check to see if there is already a revision table on a given sheet, and if so, to add a revision level, but if not, to create a new revision table. The problem I'm having is that the newly created table defaults to "Drawing" scope. We work with a lot of multi-sheet .idw files with different revision blocks on each sheet, and I would like the newly created revision table scope to default to "Active Sheet". Is there a way to build this into the iLogic rule, or better yet, change the default scope to "Active Sheet" for all inserted rev tables? I can't seem to find this as an option in Application Options or Document Settings. Anyway, here's what I have so far: Try Dim oDrawDoc As DrawingDocument = ThisApplication.ActiveDocument Dim oRevTable As RevisionTable = oDrawDoc.ActiveSheet.RevisionTables.Item(1) Dim oRow As RevisionTableRow oRow = oRevTable.RevisionTableRows.Item(oRevTable.RevisionTableRows.Count) If oRow.IsActiveRow Then For i = 1 To oRevTable.RevisionTableColumns.Count Dim oCell As RevisionTableCell = oRow.Item(i) oCell.Text = oCell.Text Next End If Dim oRows As RevisionTableRows = oRevTable.RevisionTableRows oRows.Add() Catch ex As ArgumentException Dim oDrawDoc As DrawingDocument oDrawDoc = ThisApplication.ActiveDocument Dim oRTBs As RevisionTables oRTBs = oDrawDoc.ActiveSheet.RevisionTables Dim oLocation As Point2d oLocation = ThisApplication.TransientGeometry.CreatePoint2d(24.355, 4.46) 'create and locate a new table Dim oRTB As RevisionTable oRTB = oRTBs.Add(oLocation) End Try Any help is much appreciated.
Solved! Go to Solution.