run_ugtopv.bat fails to create jt file.

2021-10-06T23:27:21Z

Summary


Details

Generating JT files from NX using Teamcenter dispatcher and run_uptopv.bat command. In a few cases the translation fail and there is no output.
If the input NX part file in such a case is opened interactively NX, running a complete update of the solid model reveals that there are some interpart modeling update issues, (the solid body resides in a top level assembly). However, doing File -> Export -> JT, delivers a result, (of course with whatever shortcomings there are due to failing/not completed updates).

How to get a JT file output when using run_uptopv.bat, (batch mode), like when you create the JT file interactively, even if there are some update issues on the NX model? 



Solution

There is a NX Open related variable which controls what should happen with a batch mode model update when errors are encountered. As running run_uptopv.bat command in fact is a NX Open based batch mode process, this NX Open variable can be used to control the behavior. 

Set UGII_UPDATE_FAIL_OPTION=UF_MODL_UPDATE_SUPPRESS 

And you will get a result out of run_uptopv.bat command which is similar to what an interactive session delivers. 

In NX documentation there are some more information about this variable and possible values:
----------------------------------------------------------
The user can also set a variable of UGII_UPDATE_FAIL_OPTION before running an NX Open API and set it to any of the values defined in UF_MODL_update_option_e. 
Here are the values listed in the enum: 
UF_MODL_UPDATE_NO_OPTION = 0No option defined yet 
UF_MODL_UPDATE_UNDOUndo entire Update operation. 
UF_MODL_UPDATE_SUPPRESSSuppress previous failed object 
UF_MODL_UPDATE_SUPPRESS_ALLSuppress previous failed object and rest of list 
UF_MODL_UPDATE_ACCEPTAccept warning of previous object 
UF_MODL_UPDATE_ACCEPT_ALLAccept previous warning and future of same type 
UF_MODL_UPDATE_INTERRUPTInterrupt update
----------------------------------------------

Notes and References


Hardware/Software Configuration

Platform: INTL64
OS: window
OS Version: 1064
Product: NX
Application: TRANSLATOR
Version: V12.0
Function: NX_JT

Ref: 001-9441451

KB Article ID# PL8014037

Contents

SummaryDetails

Associated Components