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

Since a flat pattern is 'generated' its not a simple matter to delete then turn around.  Deleting the pattern, or creating the pattern, mess with the object ID's and therefor any drawing that may be using that part.  HOWEVER... wrap your delete into a transaction, finish the transaction.  Then if you want it back, Undo the transaction.

 

Dim trans As Inventor.Transaction = invApp.TransactionManager.StartTransaction(PartModel, "Delete Flat Pattern")

 

or something like that.  with code for deleting, then

 

trans.end

 

invApp.TransactionManager.UndoTransaction

jvj