jmarkus
Mechanical
- Jul 11, 2001
- 377
I have an NX Journal that loads a part (when run from a command line, not from the NX user interface) using:
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.
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
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