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

Can you try this? It undoes everything. 

Dim app As Inventor.Application = ThisApplication
Dim TransMgr As TransactionManager = app.TransactionManager
Dim myTrans As Transaction = TransMgr.StartTransaction(app.ActiveDocument,"ColorChanges")

'Your code here
'...
'...

myTrans.End
TransMgr.UndoTransaction

Otherwise you can use it in your code to break up sections and just undo those sections.

If I've helped you, please help me by supporting this idea.
Mass Override for Each Model State

Custom Glyph Icon for iMates