Working with transactions

Working with transactions

Jef_E
Collaborator Collaborator
399 Views
2 Replies
Message 1 of 3

Working with transactions

Jef_E
Collaborator
Collaborator

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
0 Likes
400 Views
2 Replies
Replies (2)
Message 2 of 3

Owner2229
Advisor
Advisor

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
0 Likes
Message 3 of 3

Anonymous
Not applicable

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

0 Likes