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: b.slootenMHLJY

Another thing that could be happening, since the error mentioned line 14, and an object reference not being set to an instance of an object, is that your not finding that first RevisionTable object on the active sheet.  There may simply not be a RevisionTable object on the 'active' sheet of that drawing.  You could avoid this error by checking If RevisionTables.Count = 0.  If that check is true, you may just want to exit the rule at that point, or move on to some other process.  Or you could try looping through all sheets and checking their RevisionTables.Count, to find a sheet with one on it, then when you find a sheet with more than zero, proceed to get the first one, then exit the loop.  And if no RevisionTable was gotten within that loop, exit the rule, or that part of the overall code.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)