ITK Programming-Item creation with help of TCTYPE API
program for tctype for item
#include<stdio.h>
#include<conio.h>
#include<tccore\tctype.h>
#include<tc\tc.h>
#include<stdlib.h>
#include<tc\tc_startup.h>
#include<string.h>
#include<fclasses\tc_string.h>
#include<tccore\aom.h>
#include<tccore\aom_prop.h>
#include<tc\emh.h>
int Error_func(int ifail)
{
char* cError=NULL;
if(ifail != ITK_ok)
{
EMH_ask_error_text(ifail,&cError);
printf(“\n %s”,cError);
exit(0);
}
}
int ITK_user_main(int argc, char *argv[])
{
int Ifail=0;
tag_t item=NULLTAG;
tag_t create_input=NULLTAG;
tag_t bo=NULLTAG;
Error_func(ITK_init_module(“infodba”,”infodba”,”dba”));
Error_func(TCTYPE_ask_type(“Item”,&item));
Error_func(TCTYPE_construct_create_input(item,&create_input));
Error_func(AOM_set_value_string(create_input,”item_id”,”000001″));
Error_func(AOM_set_value_string(create_input,”object_name”,”testpart”));
Error_func(TCTYPE_create_object(create_input,&bo));
AOM_save(bo);
}
Popular Teamcenter Article published
Microsoft Visual Studio Project configuration for Teamcenter Unified ITK
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