Hi together!:)
I am trying to automate a NX update. Unfortunately,I encountered an error. My .fem file is linked to an idealized part. If I am changing the idealized part geometry, the .fem file shall adapt. If the idealized part is somehow unstable, the .fem is not updating properly.
If I am trying to update the .fem model to a idealized part, which is broken, it throws the error "error: tool body is completely outside target body" or something like that. Nevertheless, the .fem file keeps on updating and pretends that everything is fine. The mesh is different than expected, but the body is meshed.
How can I tell my NX journal, that it shall write out this "update error" into a txt file?
I already read myself into "Update.Errorlist" and SetDefaultUpdateFailureAction etc., but I was not able to find a working solution :(
I found something like this:
Dim myErrList As NXOpen.ErrorList
For i As Integer = 0 To myErrList.Length - 1
lw.WriteLine("Error number: "& i.ToString)
lw.WriteLine(""& ErrList.GetErrorInfo(i).ErrorCode & ": "& myErrList.GetErrorInfo(i).Description)
lw.WriteLine("")
Next
But this is not working due to the error:"object reference not set to an instance of an object"
Thank you very much!
Regards
Benny