I have benn trying to install the templates for the teamcenter integration for NX and I have not been able to do it..when I run the script specified in the help I get the error showed in the picture saying that "teamcenter integration is not initialized while initializing import operation".
Does someone knows what is happining and how to fix it...?
I have tried to launch teamcenter and then NX from teamcenter and then run the script showed in picture but I still get the same error.
PS: All those steps are performed in my client since I have not NX isntalled in the server.
Solved! Go to Solution.
I am using a 4-tier architecture and I have set the environment variables but I am still getting the same error...
Any other idea about what I am getting this error??
NX 11 | SW 2016 | Creo 4 | TcUA 11.4
Evaluating: AW 3.4
Make sure to run this script from a Teamcenter command prompt.
You can also use the regular "File => Import Assembly into Teamcenter" dialog from within managed NX.
For CAD templates you use Item ID is OS name and the item type is Item.
For CAM templates you use Item ID is OS name and a suffix, _inch_NX10 for English parts, _metric_NX10 for Metric parts.
The item type is MENCMachining except for the parts containing "target" in their name, where the item type is Item.
It should be fairly easy with NX10, for older NX releases it is a bit cumbersome, but also no problem.
Production: NX10.0.3, VERICUT 8.2, FBM, MRL 3.1.7 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 11.4
Development: C (ITK), .NET, Tcl/Tk Testing: NX12.0 | AWC 3.4 Preparing: NX12.0
Employees of the customers, together we are strong ;)
How to Get the Most from Your Signature in the Community
NX Customization - Best Practice Guide
Based on Randy's suggestion, make sure you have write access to the location where you're executing the script from. You have not defined a path for the -s argument, so it's going to try to write to C:\windows\system32. Unfortunately the error is a generic one and not particularly helpful.
I just ran your exact syntax hooked up to 4-tier from C:\window\system32 using an NX Command Prompt and it worked. So there's nothing wrong with the syntax.
Do you have name rules enabled?
Check your temp directory and see if an NX syslog is being generated. If there is, check the end of the log file for clues.
There are a couple of PRs and FAQ that point to SSO as a cause of this error, too.
Issue NX clone fails in SSO env even when the LDAP credentials are used unless the TC_SSO_SERVICE variable is commented.
See Document ID: 002-7008237, and PR# 7248426
I also did it on that way, navigating till the file and run it from there but it didn't work...
About the TC_SSO_SERVICE variable I could not find it ...
Using the method proposed by Stefan_Pendl "Import Assembly into teamcenter" it did work. So now, from "new item" option I can choose from the different tempaltes imported... However, I have not been able to import the inspection templates since iIcould not find them...
Thanks so much
I am working in 2T environment with run_managed.
I have a doubt in writing the command line.
Command line :- run_managed.exe "myApp.exe" argument.
In code Iam hardcoding -pin=yes,-u=username,-p=password and passing as arguments for ufsession.ugmgr.Initialize()
It is failing with Exception "External Component has thrown error and Teamcenter not initialized".
Command line :- run_managed.exe "myApp.exe" argument -pim=yes,-u=username,-p=password,-g=group
And in code I should divide these arguments separately for my part number and arguments to initialize (ufsession.ugmgr.Initialize()).
Which is the correct way in above mentioned ones.
And please help me why I am getting "Teamcenter not initialized exception". Below is the code i am using.
Dim cld() As String
cld(0) = "yes"
cld(0) = "username"
cld(1) = "password"
Is there any need to start tc_profilevars, FCC Home.......There is some stuff which i came across in my reasearch.
I badly wanted to know the exact process and prerequisites to be taken for run_managed.
Kindly please help.
are those commas between the switches intenional or by accident? --> "-u=username,-p=password,-..." --> I'd use a space character...
to run a 2-tier .NET you just need to set TC_ROOT and TC_DATA (tc_profilevars.bat is called by the ugmgr.initialize function) - FMS_HOME should be set already, but check to be sure