Export Parasolid not FlattenAssembly

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

Newer versions of NX use a "ParasolidExporter" object to set the options and perform the export. The good news is that NX can now record the parasolid export operation; you can record a journal and see what options you need to set.