<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Revision Table - delete table, add table, add text to active row in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/revision-table-delete-table-add-table-add-text-to-active-row/m-p/5183291#M123301</link>
    <description>&lt;P&gt;I'm new to i-logic and VBA.&lt;/P&gt;&lt;P&gt;I have a lot of drawings that I need to delete inactive rows of a revision table and update all cells with the same information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was thinking it may be best to delete the table and then add it back into the drawing at a specific location relative to the sheet size of the drawing.&lt;/P&gt;&lt;P&gt;Is that the&amp;nbsp;best way&amp;nbsp;or would it be easier to delete inactive rows of the revision table, then&amp;nbsp;add the required information into the cells.&lt;/P&gt;&lt;P&gt;I would like the cell information to remain in the form for the next drawing I open, so it can be repeated easily. Would this need to come from a spreadsheet? How can I achieve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Jul 2014 23:48:25 GMT</pubDate>
    <dc:creator>gavinc</dc:creator>
    <dc:date>2014-07-29T23:48:25Z</dc:date>
    <item>
      <title>Revision Table - delete table, add table, add text to active row</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/revision-table-delete-table-add-table-add-text-to-active-row/m-p/5183291#M123301</link>
      <description>&lt;P&gt;I'm new to i-logic and VBA.&lt;/P&gt;&lt;P&gt;I have a lot of drawings that I need to delete inactive rows of a revision table and update all cells with the same information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was thinking it may be best to delete the table and then add it back into the drawing at a specific location relative to the sheet size of the drawing.&lt;/P&gt;&lt;P&gt;Is that the&amp;nbsp;best way&amp;nbsp;or would it be easier to delete inactive rows of the revision table, then&amp;nbsp;add the required information into the cells.&lt;/P&gt;&lt;P&gt;I would like the cell information to remain in the form for the next drawing I open, so it can be repeated easily. Would this need to come from a spreadsheet? How can I achieve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2014 23:48:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/revision-table-delete-table-add-table-add-text-to-active-row/m-p/5183291#M123301</guid>
      <dc:creator>gavinc</dc:creator>
      <dc:date>2014-07-29T23:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Revision Table - delete table, add table, add text to active row</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/revision-table-delete-table-add-table-add-text-to-active-row/m-p/5198137#M123302</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The current API provides the property to check if the row is active and the method to delete it. e.g. the VBA code below iterates all revision table of the active sheet and deletes the inactive rows.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Sub deleteinActiveRow()

    Dim oDrawingDoc As DrawingDocument
    Set oDrawingDoc = ThisApplication.ActiveDocument
    
    Dim oActiveSheet As Sheet
    Set oActiveSheet = oDrawingDoc.ActiveSheet
    
    Dim oEachRevisionTable As RevisionTable
    Dim oEachRow As RevisionTableRow
    For Each oEachRevisionTable In oActiveSheet.RevisionTables
        For Each oEachRow In oEachRevisionTable.RevisionTableRows
            If oEachRow.IsActiveRow = False Then
                'if it is inactive row, delete it
                oEachRow.Delete
            Next
        Next
        
    Next
End Sub
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2014 13:22:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/revision-table-delete-table-add-table-add-text-to-active-row/m-p/5198137#M123302</guid>
      <dc:creator>xiaodong_liang</dc:creator>
      <dc:date>2014-08-06T13:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: Revision Table - delete table, add table, add text to active row</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/revision-table-delete-table-add-table-add-text-to-active-row/m-p/5199605#M123303</link>
      <description>&lt;P&gt;Thank you. I am getting a compile error "Next without For"&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2014 21:46:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/revision-table-delete-table-add-table-add-text-to-active-row/m-p/5199605#M123303</guid>
      <dc:creator>gavinc</dc:creator>
      <dc:date>2014-08-06T21:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Revision Table - delete table, add table, add text to active row</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/revision-table-delete-table-add-table-add-text-to-active-row/m-p/5199979#M123304</link>
      <description>&lt;P&gt;sorry, a typo:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If oEachRow.IsActiveRow = False Then&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'if it is inactive row, delete it&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;oEachRow.Delete&lt;BR /&gt;&lt;STRONG&gt;End If&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2014 03:31:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/revision-table-delete-table-add-table-add-text-to-active-row/m-p/5199979#M123304</guid>
      <dc:creator>xiaodong_liang</dc:creator>
      <dc:date>2014-08-07T03:31:44Z</dc:date>
    </item>
  </channel>
</rss>

