Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NX Journal - Open Part - Update Undo Happened - How to handle

Status
Not open for further replies.

jmarkus

Mechanical
Jul 11, 2001
377
0
16
CA
I have an NX Journal that loads a part (when run from a command line, not from the NX user interface) using:

Code:
Dim basePart1 As BasePart = theSession.Parts.OpenBaseDisplay(fil, partLoadStatus1)

Sometimes the part which is loaded trips an "Update undo happened" error because it tries to update features in the model upon loading and fails to do so. When this happens I don't get a work part reference.. i.e.

Code:
workpart = theSession.Parts.Work

will return "System.NullReferenceException: Object reference not set to an instance of an object."

If I load the part directly in NX I get the "Update Warnings and Failure Report" indicating the features it is having trouble with, but the part does load and I do have a work part.

How do I handle this in NX Open so that the update errors can be ignored and I can move forward?

Thanks,
Jeff
 
Status
Not open for further replies.
Back
Top