ITK Programming-Teamcenter Login

ITK Programming for Teamcenter Login Program

#include<stdio.h>
#include<tc/tc.h>
#include<stdlib.h>
#include<string.h>
#include<tc/tc.h>
#include<stdio.h>
#include<tccore/item.h>
#include<tccore/aom_prop.h>
#include<tccore/aom.h>
#include<property/nr.h>
#include<stdlib.h>
#include<fclasses/tc_string.h>
#include <stdlib.h>
#include <fstream>
#include <string>
#include <sstream>
#include <iostream>
#include <epm/epm_toolkit_tc_utils.h>

int ITK_user_main(int argc,char *argv[])

{

int Ifail=0;

char* cUser=NULL;

char* cPass=NULL;

char* cGrp=NULL;

cUser=ITK_ask_cli_argument(“-u=”);

cPass=ITK_ask_cli_argument(“-p=”);

cGrp=ITK_ask_cli_argument(“-g=”);

if (tc_strcmp(cUser, NULL) == 0 || tc_strcmp(cUser, “”) == 0 ||tc_strcmp(cPass, NULL) == 0 || tc_strcmp(cPass, “”) == 0  ||tc_strcmp(cGrp, NULL) == 0|| tc_strcmp(cGrp, “”) == 0 )

{

printf(“TC login unsuccessfully”);

}

else

{

Ifail=ITK_init_module(cUser,cPass,cGrp);

//Ifail=ITK_init_module(“infodba”,”infodba”,”dba”);

//Ifail=ITK_auto_login();

if (Ifail!=ITK_ok)

{

printf(“TC login unsuccessfully”);

}

else

{

printf(“\n \n TC login successfully”);

}

}

ITK_exit_module(TRUE);

return 0;

}

 


  Popular Teamcenter Article published

https://globalplm.com/template-for-precondition-custom-exit-dll-program/


 


Four Easy Steps to Get Subscribed

Step1:-Enter your Email address and Hit SUBSCRIBE Button.

Step2:-Please check inbox and open the email with the subject lineConfirm your subscription for Global PLM“.

Step3:-Please click “Confirm Follow” and you got the email with the subject” Confirmed subscription to posts on Global PLM”.

Step4:-Voila, You are subscribed.Happy Learning


 

admin

View Comments