Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
WCrihfield
in reply to: f_calebh

If you want, we could change the code so that it loops through each sheet in the drawing, checking if each sheet has a revision table in it, and if it does, create a duplicate of that revision table as a custom table, that way it wouldn't matter what sheet you specify in the code.  I believe that which ever sheet the code is going to be placing a new custom table on needs to be 'active' or 'activated', because we're physically placing that new custom table on it at a specific 2d location.  That simple 2d location doesn't know/care which sheet is active, so we have to set that part up as needed before that point in the code.  The Sheet object has a method called 'Activate', that we can use for that purpose as we loop through the sheets.

We could also put the bulk of the code that gathers data from the existing revision table and creates the new custom table into a separate, lower sub routine, then call that sub routine within the loop of the sheets, when it finds an existing revision block.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)