Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

TC & NX Utilities

Status
Not open for further replies.

Ram K

Mechanical
Apr 17, 2018
56
Hi
I am trying to make an utility to export part file images from Team center NX files. I wrote the utility as below and it is not working properly. Can somebody guide me (or) provide proper code for this utility to work. Attached is the result error message I have received. Thank you for your help in advance.



@echo off

echo TC NX utilities

set SPLM_LICENSE_SERVER=28000@PlmUSLicenseserver


cd C:\apps\NX090\UGMANAGER


call ugimg.exe -f jpeg fspec_list="@DB/1067391-105/A"



echo "The program has completed"

@echo on

pause
 
 https://files.engineering.com/getfile.aspx?folder=2f575f28-2d7a-443a-831a-ba066dab4240&file=CMD_TC.jpg
Replies continue below

Recommended for you

I am guessing you are running this utility outside of Teamcenter ?
You need tot tell it where the data is located. (TC_Root and TC-Data)

Code:
Set TC_Root=###your path###
Set TC_Data=###Your path###

call ###your path###\TC_DATA\tc_profilevars.bat
###your ugimg.exe cmd line###

Are you running this in 4-tier or 2-tier mode?

TCRoot_fy1ipt.png




Ronald van den Broek
Senior Application Engineer
Winterthur Gas & Diesel Ltd
NX9 / TC10.1.2

Building new PLM environment from Scratch using NX12 / TC11
 
Hi Ronald
Thank you for the reply. I am running this utility outside of the Teamcenter and it is 4 tier environment. I am having user role in Team center, Is it required to have admin role for successful run of utilities?
 
Hi,

No admin is needed. Important is that you set the the TC_ROOT and TC_DATA paths. If you do not do this then the utility doesn't know where to find the data.
The "tc_profilevars.bat" is needed to be able to create the connection to the database.



Ronald van den Broek
Senior Application Engineer
Winterthur Gas & Diesel Ltd
NX9 / TC10.1.2

Building new PLM environment from Scratch using NX12 / TC11
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor