Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Jef_E
372 Views, 2 Replies

Working with transactions

Hi,

 

I am building a product configurator and to finalize it I am using so transactions to make it possible to do some undo actions.

 

But for one step I'm  not certain. My configurator works bottom-up so at a given piont parts are created. Is it wise to wrap this in a single transaction to undo? what will happen will the undo also undo the file creation? 



Please kudo if this post was helpfull
Please accept as solution if your problem was solved

Inventor 2014 SP2
Owner2229
in reply to: Jef_E

Hi, it depends on if you save each new created part after it's created or create them within an assembly and save them only when user hits save manually.

If the parts are already saved, the only thing that will happen is they'll be excluded from the assembly.

 

I'd personally exclude the parts' creation from the transaction or wrap them in their own.

Consider using "Accept as Solution" / "Kudos" if you find this helpful.
- - - - - - - - - - - - - - -
Regards,
Mike

"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - John F. Woods
Anonymous
in reply to: Owner2229

I agree, it's wiser (for undo purposes) to exclude the part generation from the assembly placement transaction.