cancel
Showing results for 
Search instead for 
Did you mean: 

Exporting results to universal file dataset 2414

Valued Contributor
Valued Contributor

Hello,

 

I have written  code to extract element-nodal results from the .op2 file, and writing it to the universal file format. The results are written to universal file dataset 2414. A full description of this dataset can be found in the NX manual and also here:

Universal file dataset 2414

The code uses NX open functionality to access the .op2 file.

At this moment, only linear tri and quad elements are supported.

Stresses are written as Pa (hardcoded). The code to write the results as MPa is present as comment.

 

Fee free to use this code (at your own responsibility).

I welcome any comments for improvement.

 

    Sub Main()
        Dim Loadcases() As Integer = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31}
        'Dim Loadcases() As Integer = {1}
        ExportMultiple2DResultFromDatabase(1, Loadcases, 4, "C:\temp\Multiple2DResults.unv")

        'Export each result to a single file
        ExportSingle2DResultFromDatabase(1, 1, 4, "C:\temp\Single2DResult.unv")

    End Sub

 

The complete code is in attachment, due to limitations of number of characters in this message

 

Regards,

frederik