Does anynone know if there is an API to export/write/print an NX.NASTRAN SET?
I have played around a .sim and record a journal and the nearest I could find is someting about
Dim caeDataContainer1 As CAE.CaeDataContainer caeDataContainer1 = theSession.CaeSession.GetDataContainer() Dim tagvector2(-1) As TaggedObject caeDataContainer1.AddTaggedObjectVector("subsetExp
which is not going to do much as far as I can see/understand.
Solved! Go to Solution.
There is no direct API to export a set to a file. However, you can use solver syntax preview to capture the strings that would be exported.
Interactively, RMB on a group in the Sim Navigator and pick "Solver Syntax Preview". This will generate output in the listing window.
In NX Open, use NXOpen.CAE.CaeGroup.GetSolverCardSyntax() to get this information as an array of strings. You could then use standard .NET system utilities to write these to a file.
Thanks. I am an "idiot". Never thought at looking at this option
Will have a good look over the week end.