Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
cmcconnell
1327 Views, 9 Replies

Make all values in a revision block non static

Hello All,

 

For some reason, for the last few releases, updating properties from Vault has updated our rev block (we use vault rev blocks) correctly, however, the operation adds the correct values to the rev block and then leaves everything static.

 

Is there a way to use ilogic to change all of the cells to Not Static?

 

I have found a snippet (thanks @jdkriek and @cbenner) that will make them all static, but my programming capability does not allow me to reverse it. Smiley Sad 

 

Here is the snippet:

Dim oDrawDoc As DrawingDocument = ThisApplication.ActiveDocument
' Get the revision table
Dim oRevTable As RevisionTable = oDrawDoc.ActiveSheet.RevisionTables.Item(1)
' Get last row
Dim oRow As RevisionTableRow
oRow = oRevTable.RevisionTableRows.Item(oRevTable.RevisionTableRows.Count)
' Make sure we have the active row
If oRow.IsActiveRow Then
' Go through all columns in that row
For i = 1 To oRevTable.RevisionTableColumns.Count
Dim oCell As RevisionTableCell = oRow.Item(i)
' Set all cells to static
oCell.Text = oCell.Text
Next
End If

 

Mechanix Design Solutions inc.