Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IFRs on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automate Export of JT Files from FEA results

Status
Not open for further replies.

jhoelscher

Agricultural
Jun 29, 2011
6
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
 
Replies continue below

Recommended for you

From the help files, it appears that you need to call either the CreatePostview or CreatePostviewForResult method, either of which will return a postview ID that you can later use with the PostviewApplyGroupVisibility and PostviewExportDisplay methods.

www.nxjournaling.com
 
Using native.

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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor