NX Cannot translate NX to JT using command line (using bat file)

2022-03-29T17:58:39Z
NX for Design

Summary


Details

User is attempting to translate NX models to JT using a bat file. The bat file points to a text file with a list of parts. Here is the error:

C:\Temp>UGtoPV_Test_NX.bat
CD=C:\Temp Call "C:\NX\PVTRANS\run_ugtopv.bat" partname~01 -single_part
 
C:\Temp>Call "C:\NX\PVTRANS\run_ugtopv.bat" partname~01 -single_part


====================================================================
        NX JT Export (version - NX1003 - Build date - Nov 15 2016)
 Copyright 2014 by Siemens Product Lifecycle Management Software Inc.
                   5800 Granite Parkway, Suite 600.
                         Plano, TX 75024.
                              USA.
                      Phone: 1 (972) 987-3000
                       Fax: 1 (972) 987-3299
                   Web site: www.siemens.com\plm
=====================================================================
Looking for config file: tessUG.config
Looking for config file: tess.config
Looking for config file: C:\NX/pvtrans/tessUG.config .... Found!
Translator Log File created at: C:\Users\AppData\Local\Temp\partname~01.log
ERROR 1095 :Problem with input file

Solution

The reason for this failure we found was that the part name was not being called with the extension!
This works:
"C:\UG_NX10.0\PVTRANS\run_ugtopv.bat" partname~01.prt -single_part
This doesn't work:
"C:\UG_NX10.0\PVTRANS\run_ugtopv.bat" partname~01 -single_part

After changing the input file names to include the .prt extension, the bat file worked perfectly.

Notes and References


Hardware/Software Configuration

Platform: na
OS: n/a
OS Version: n/a
Product: NX
Application: TRANSLATOR
Version: V2000
Function: NX_JT

Ref: 001-10275483

KB Article ID# PL8616295

Contents

SummaryDetails

Associated Components

CAD Translators