Showing results for 
Search instead for 
Do you mean 
Reply
Solved! Go to solution

Exporting/Writing Nx.Nastran SET to LW (or somethingelse) ?

[ Edited ]

To all,

 

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("subsetExportGroups", tagvector2)

which is not going to do much as far as I can see/understand.

 

 

Thanks

Regards

Production: NX9.0.3.4, NX10.0.2.6
Development: VB.NET (amateur level !)
2 REPLIES
Solution
Solution
Accepted by topic author selex_ct
‎03-11-2016 01:25 PM

Re: Exporting/Writing Nx.Nastran SET to LW (or somethingelse) ?

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.

Re: Exporting/Writing Nx.Nastran SET to LW (or somethingelse) ?

Thanks. I am an "idiot". Never thought at looking at this option

Will have a good look over the week end.

Thanks

Production: NX9.0.3.4, NX10.0.2.6
Development: VB.NET (amateur level !)