cancel
Showing results for 
Search instead for 
Did you mean: 

Atomic procedure

Valued Contributor
Valued Contributor

hello,

 

 

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 ?

 

 

Tnx

 

 

 

2 REPLIES

Re: Atomic procedure

Esteemed Contributor
Esteemed Contributor

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

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP5 + patch/TC11.2
I'd rather be e-steemed than e-diseaseled


Re: Atomic procedure

Valued Contributor
Valued Contributor

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.

 

Tnx anyway