Hi,
I have created a VBA journal script on NX 8.5 to export some data on a xslx file (such as maximum Von Mises stress).
Everything works well when I use the option :
Dim average As CAE.Result.Averaging
average.AverageAcrossFeatangle = True
average.AverageAcrossAnglevalue = 45.0
Then, further in the code, I use this command to obtain results :
resultAccess.AskNodalResultAllComponents(nodeIndex, nodeValues)
The nodal values given by my journal script are the same as nodal values read in the screen. So this action totally works !
However, when I change the Angle option, results remain the same :
Dim average As CAE.Result.Averaging
average.AverageAcrossFeatangle = False
average.AverageAcrossAnglevalue = 45.0
To obtain results, this time I have to use :
resultAccess.AskElementNodalResult(elementIndex, nodeIndex, nodeValues)
The fact is Von Mises nodal values should not remain unchanged, or at least for some elements (because of the angle 45 activated).
On my screen, when I do the same steps manually on a specific element, I notice that nodal values have changed. But my journal script gives nodal values as if the averaging option had been unchanged (= True)...
Is this command not well understood when I use a journal script ?
I can send you the entire code if necessary !
Thanks !
Best Regards,
Baptiste