Automate Export of JT Files from FEA results
Automate Export of JT Files from FEA results
(OP)
I am trying to create a NX 7.5 vb journal that would automate the exporting of JT files of each 3D element body within FEA results. I need help in getting the postview ID, group containers in results (i.e. ThreeDimensional, Connector, OneDimensional), and the name of the 3D Element body.
theSession.Post.PostviewApplyGroupContainerVisibility(3, CAE.Result.GroupContainer.ThreeDimensional, False)
theSession.Post.PostviewApplyGroupContainerVisibility(3, CAE.Result.GroupContainer.Connector, False)
theSession.Post.PostviewApplyGroupContainerVisibility(3, CAE.Result.GroupContainer.OneDimensional, False)
theSession.Post.PostviewApplyGroupVisibility(3, CAE.Result.GroupContainer.ThreeDimensional, i, True)
theSession.Post.PostviewExportDisplay(3, "C:\Users\Body_" & i+1 & ".jt", CAE.Post.Export.Jt, False, False)
I believe I can find a work around by iterating 1 to 8, but I hope there is a better way.
Thanks,
Josh
theSession.Post.PostviewApplyGroupContainerVisibility(3, CAE.Result.GroupContainer.ThreeDimensional, False)
theSession.Post.PostviewApplyGroupContainerVisibility(3, CAE.Result.GroupContainer.Connector, False)
theSession.Post.PostviewApplyGroupContainerVisibility(3, CAE.Result.GroupContainer.OneDimensional, False)
theSession.Post.PostviewApplyGroupVisibility(3, CAE.Result.GroupContainer.ThreeDimensional, i, True)
theSession.Post.PostviewExportDisplay(3, "C:\Users\Body_" & i+1 & ".jt", CAE.Post.Export.Jt, False, False)
I believe I can find a work around by iterating 1 to 8, but I hope there is a better way.
Thanks,
Josh





RE: Automate Export of JT Files from FEA results
www.nxjournaling.com
RE: Automate Export of JT Files from FEA results
Thanks,
Josh
RE: Automate Export of JT Files from FEA results
What steps do you take in interactive NX to export the results?
www.nxjournaling.com
RE: Automate Export of JT Files from FEA results
Once the results file .OP2 is loaded, Stress-Elemental, Von Mises, and I have the correct 3D element "body" selected/displayed, I use the File, Export, JT... Current work around would be to ask the user for a name each time or at the beginning of the export. Typically we only export out three bodies, so that wouldn't be hard/difficult.
I with I could get the active postview (with ID) without creating a new postview and get the Element name. Once I get these issues handled, I can then work on loading the Template I want. I just don't know the NX Open as well as I would like to get this all done.