I am playing around with NX.CAE results and recorded a test journal. I did a couple of very minor mods to the journal and it (still) works. So far so good. Looking at the recorded journal, it works because it uses specific, solution and loadcase. The followings lines were recorded
Dim resultManager1 As CAE.ResultManager = CType(theSession.ResultManager, CAE.ResultManager) Dim solutionResult1 As CAE.SolutionResult = CType(resultManager1.FindObject("SolutionResult[mytestcase_f1_s1.sim_RespSim1]"), CAE.SolutionResult) Dim loadcase1 As CAE.Loadcase = CType(solutionResult1.Find("Loadcase"), CAE.Loadcase) Dim iteration1 As CAE.Iteration = CType(loadcase1.Find("Iteration"), CAE.Iteration) Dim resultType1 As CAE.ResultType = CType(iteration1.Find("ResultType[[Von-Mises Stress][Element-Nodal]]"), CAE.ResultType)
Assuming that the results is already displayed (in the example the Von Mises stress) is there a way of knowing what is displayed in the GUI? In this case one is after the following info "variables": "mytestcase_f1_s1.sim_RespSim1" & "Loadcase"
Solved! Go to Solution.
Use NXOpen.CAE.Post.GetResultForPostview() to get the CAE.Result and the CAE.ResultParameters that reflect the current state of the PostView. Use the query methods on ResultParameters to determine the information you are looking for.
Thanks JimB. Will have a look at the keyword option(s) when I have a few minutes