Cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Installing NX templates in teamcenter integration for NX

Pioneer
Pioneer

Hi MarkusK,

 

Thanks for the reply.

 

I incedentally put those commas. I dont use comma in cmd lines. 

Please clarify one thing. After setting TC_ROOT and TC_DATA should I call profilevars and then go for this command line.

or

There is no need to call profilevars. Just go with this command line?

 

Yesterday when i dubug my code (not from run managed) I am not able to connect to Teamcenter through this line(ufs.ugmgr.initialize). I already set my FMS_HOME

I am in a great confusion what to pass arguments for this (ufs.ugmgr.initialize) line. 

 

Dim cld(3) As String
cld(0) = "-pim=yes"
cld(1) = "-u=Username"
cld(2) = "-p=Password"
cld(3) = "-g=dba"

theUFSession.Ugmgr.Initialize(cld.Length(), cld)

theUFSession.UF.IsUgmanagerActive(managerActive)

 

This is my code. I am passing all 4 arguments to initialize. Is it correct??

Please enlighten me.

Re: Installing NX templates in teamcenter integration for NX

Siemens Legend Siemens Legend
Siemens Legend

when I want to run a NX-Open .NET program in 2-tier mode, I only set TC_ROOT, TC_DATA, FMS_HOME and then I run %UGII_BASE_DIR%\nxbin\run_managed <your-path-to-your-net-program-here> -pim=yes -u=user -p=password -g=dba -otherargs=here...

so I never call %TC_DATA%\tc_profilevars.bat - that will be done in some script that is called during runtime of the .net programm in %UGII_BASE_DIR%\UGMANAGER...

I always forward all the args I get in the program (C#), i.e. theUfSession.Ugmgr.Initialize(args.Length, args)...

but yours should be correct too!

 

Re: Installing NX templates in teamcenter integration for NX

Pioneer
Pioneer

Hi Markus,

 

I am getting an exception at...

theUFSession.Ugmgr.Initialize(cld.Length(), cld) - Error here saying - "External application throws exception".

theUFSession.UF.IsUgmanagerActive(managerActive)

And i am getting another message "Teamcenter is not initialized".

 

Do have any idea why I am getting this kind of exception.

Dim cld(3) As String
cld(0) = "-pim=yes"
cld(1) = "-u=Username"
cld(2) = "-p=Password"
cld(3) = "-g=dba"

 

theUFSession.Ugmgr.Initialize(cld.Length(), cld)

 

Is there any wrong in passing of arguments this way?? I am not getting any solution for this exception.

Please help.

Thanks in advance.

 

Regards,

Sashank