AnotherMike
Aerospace
- Feb 24, 2014
- 21
I just find an interesting thing.
I record the fitting curve process using c#.
The final part of the code is like below.
.....
NXObject nXObject7;
nXObject7 = fitCurveBuilder1.Commit();
......
If you run the code, you get a fit curve feature in the feature tree.
But unlike other "builder.commit", the result (nXObject7) of this "fitCurveBuilder.Commit" is "null".
Whenever you use this "nXObject7", for example, string a=nXObject7.JournalIdentifier, you will get "System.NullReferenceException: Object reference not set to an instance of an object" error.
Does anyone knows what happens here?
Thank you.
I record the fitting curve process using c#.
The final part of the code is like below.
.....
NXObject nXObject7;
nXObject7 = fitCurveBuilder1.Commit();
......
If you run the code, you get a fit curve feature in the feature tree.
But unlike other "builder.commit", the result (nXObject7) of this "fitCurveBuilder.Commit" is "null".
Whenever you use this "nXObject7", for example, string a=nXObject7.JournalIdentifier, you will get "System.NullReferenceException: Object reference not set to an instance of an object" error.
Does anyone knows what happens here?
Thank you.