in a VB .NET journal (NX8.5) I need to write a procedure that is atomic, i.e. such that if a portion of it fails because of an exception then the entire procedure is rolled back.
I wanted to try Transactionscope() class but relevant namespace seems
to be unavailable.
Any suggestion ?
Would Undo Marks do what you want?
Create your own at the beginning of the journal.
Use try/catch, etc. as needed, catch blocks rolling back to your undo.
Be careful about doing things like saving the part which might clear undos
Production: NX10.0.3.5 MP5 + patch/TC11.2
I'd rather be e-steemed than e-diseaseled
it seems Undo Marks are limited to modeling operations though
(variable assignments are not undone).
Searched docs, Snap guide, NXOpen reference, UGAnswer and found nothing
useful about Undos.