ITK Programming-Item Creation
ITK Programming for Item Creation
#include<tc/tc.h>
#include<tccore/item.h>
#include<tccore/aom.h>int ITK_user_main(int argc, char *argv[])
{
int iRetcode = ITK_ok;
int n = 0;
tag_t item=NULLTAG;
tag_t* items=NULL;
tag_t rev=NULLTAG;printf(“\nUtility Started…”);
iRetcode = ITK_init_module(“infodba”,”infodbapassword”,”dba”);if(iRetcode != ITK_ok)
{
printf(“\nLogin Failed”);
}
else
{
printf(“\nLogin Successful.”);
ITEM_create_item(“000001″,”test1″,”Item”,”001″,&item,&rev);
AOM_save_with_extensions(item);
if (n>0) MEM_free(items);
}
ITK_exit_module(TRUE);
printf(“\nUtility completed…”);
return iRetcode;
}
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 line“Confirm 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
View Comments
Item_create_item api is deprecated , can you please use any other!!!
Yes.please use TCTYPE_create_object API.