Cancel
Showing results for 
Search instead for 
Did you mean: 

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

Gears Phenom Gears Phenom
Gears Phenom

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: NX.CAE 9.0.3.4, NX.CAE 10.0.2.6
Development: VB.NET (amateur level !)
2 REPLIES

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

Siemens Phenom Siemens Phenom
Siemens Phenom

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) ?

Gears Phenom Gears Phenom
Gears Phenom

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

Will have a good look over the week end.

Thanks

Production: NX.CAE 9.0.3.4, NX.CAE 10.0.2.6
Development: VB.NET (amateur level !)