ITK Programming for Help Function

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ITK Programming for Help Function

#include<stdio.h>
#include<conio.h>
#include<tc\tc.h>
#include<stdlib.h>
#include<tc\tc_startup.h>
#include<string.h>
#include<fclasses\tc_string.h>

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

{

int Ifail=0;

char* cUser=ITK_ask_cli_argument(“-u=”);

char* cPass=ITK_ask_cli_argument(“-p=”);

char* cGrp=ITK_ask_cli_argument(“-g=”);

char* chelp=ITK_ask_cli_argument(“-h”);

if(chelp)

{

printf(“\nplease put user name in -u”);

printf(“\nplease put user password in -p”);

printf(“\nplease put user group in -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(“\nTC login unsuccessfully”);

}

else

{

Ifail= ITK_init_module(cUser,cPass,cGrp);

printf(“TC login successfully”);

}

return 0;

}


  Popular Teamcenter Article published


ITK Programming-Item Creation

ITK Programming-Teamcenter Login

Template for PreAction custom Exit DLL Program

Template for PreCondition custom Exit DLL Program

Template for Batch ITK Program

Basic ITK Customization Concept Part-02

Basic ITK Customization Concept Part-01

Teamcenter Customize Error Messages

User Service Mechanism in Teamcenter Customization

Explanation of ITK Login Program

POM Queries in Teamcenter

Teamcenter Workflow Handlers

Microsoft Visual Studio Project configuration for Teamcenter Unified ITK

Teamcenter Unified Customization Basics

Teamcenter Unified Data Model Concept


 


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


 

Leave a Reply

Your email address will not be published. Required fields are marked *