Quantcast
Channel: NX Journaling - Journaling / NXOpen API
Viewing all articles
Browse latest Browse all 783

Export Parasolid not FlattenAssembly

$
0
0

Hi,
Can someone help me to achieve my following requirement.
I need to export some assemblies in parasolid format keeping the structure using a journal. In newer versions of NX (I'm using a 2206) I can select whether to export to a flat assembly or not.
So far I've been using a journal like this:

Try
           PsExport(tagList, 300, exportFileName)
       Catch ex As NXException
           lw.WriteLine("*** ERROR ***")
           lw.WriteLine(ex.ErrorCode.ToString & " : " & ex.Message)
End Try
 
Sub PsExport(ByVal bodyTags() As Tag, ByVal PsVersion As Integer, ByVal exportFileName As String)
 
        Dim theUfSession As UFSession = UFSession.GetUFSession()
 
        'parasolid export
 
        Dim numUnexported As Integer
 
        Try
            theUfSession.Ps.ExportLinkedData(bodyTags, bodyTags.Length, exportFileName, PsVersion, Nothing, numUnexported, Nothing)
 
        Catch ex As NXException
            MsgBox(ex.Message)
 
        End Try
 
    End Sub

How can I set if I want to export in flat assembly or not in parasolid in my journal?
Because NX exports flat assembly by default.
Thank you


Viewing all articles
Browse latest Browse all 783

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>