01-19-2017
12:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
01-19-2017
12:17 AM
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
01-19-2017
12:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
01-19-2017
12:47 AM
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
- - - - - - - - - - - - - - -
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