I want to export a result to a universal file. The only way I'm able to do this is through the results combination builder and combining the result by multiplying it by 1. When journaling this, the class CAE.ResultsCombinationBuilder is used.
The problem I now have is that it is extremely slow.
What is the best (eg fastest) way to access the results and export them to a universal file (or other formats)
Thanks in advance
Solved! Go to Solution.
NX never "imports" results (NX Post operates directly on the external solver results file), so it does not really have results to "export".
The results combination command writes the .unv/.bun file so that it can also be attached to NX Post.
You can write your own external program that reads the solver results directly and writes them in the format that you want. You could also use the NX Open Result and ResultAccess classes to do the reading part for you (you would still have to write your own "export" code)
I'm using the resultsaccess class to read the results from solver database.
when using the function AskElementNodalResultAllComponents I obtain the results I need. However, the function returns an element index, but I cannot figure out which element the results are for.
How can I find out for which element label AskElementNodalResultAllComponents returns the results for (eg. the relation between element index and element label)?
Can loop through each element to be dealt with
For Each FEElm As CAE.FEElement In theArrayFEElm Dim elementIndex As Integer = theInputResult.AskElementIndex(FEElm.Label) Dim elemNodeIdxs() As Integer = Nothing Dim iNumComponents As Integer Dim elementValues() As Double = Nothing theResultAccess.AskElementNodalResultAllComponents
(elementIndex, elemNodeIdxs, _ iNumComponents, elementValues
Note that NX Post (and the CAE.Result and CAE.ResultAccess classes) operate directly on the solver results file. The CAE.Result class contains methods to ask the total number of nodes and elements in the results files. The indicies range from 1 to N. CAE.Result also contains methods to determine the node or element label for a given index, and methods to determine the index for a given label. You cannot use node or element objects from the .fem/.sim parts to operate on results.
Specifically, you want CAE.Result.AskElementLabel() to get the element label for a given index.
Thank you for your answer. I know understand better the resultaccess class.
The answer from select_cx also worked.
I also found your notes of the workshop you have given on simulation results access in 2012.