Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Extenal batch file to export JT files

Status
Not open for further replies.

Berserk

Automotive
Jan 23, 2003
248
Hello,

I have a batch file that I attached to the right mouse click to export jt files from NX3 part files. The result is monolithic whenever I select an assembly file.

Now on NX5, it does not work. I have tried modifying it but the result is a single jt file for each component whenever I use the external batch file.

Inside UG, it works OK. I am using the same tessUG.config file.

Here is my batch file and attached is the config file:

@rem run_ugtopv
@rem Copyright (c) 2004-2005 UGS
@rem This script selects an appropriate version of UG translator

@if not exist "%UGII_BASE_DIR%" goto :no_ug

@set PATH=D:\UGNX5;D:\UGNX5\UGII;%PATH%
@set UGII_ROOT_DIR=D:\UGNX5\UGII
@set JTK_USE_MASTER_NOTATION_PMI_FORMAT=1
@set UGII_PV_TRANS_MODEL_ANN=1

@rem This must be set to use the instance ID for CADIDs
@set JTK_XLATR_ENABLE_PERSISTED_INSTANCE_ID=1

@"%UGII_BASE_DIR%\PVTRANS\ugtopv.exe" -config="H:\a1032-pds-Roark\util\Batch_Files\tessUG.config" %*
@goto :end

:no_ug
@echo "The environment variable UGII_BASE_DIR is not set"
@echo "Exiting..."
@goto :end

:end

UGNX5.0.4.1 MP6 \ WinXP-SP3
Productive Design Services
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor