×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Automate Export of JT Files from FEA results

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

RE: Automate Export of JT Files from FEA results

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

RE: Automate Export of JT Files from FEA results

Are you working in native or TC?
What steps do you take in interactive NX to export the results?

www.nxjournaling.com

RE: Automate Export of JT Files from FEA results

(OP)
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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources