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