ITK Programming-Find Item
ITK Programming for find Item
#include<tc/tc.h>
#include<stdio.h>
#include<tccore/item.h>int ITK_user_main(int argc, char *argv[])
{int iRetcode= ITK_ok;
int n = 0;
tag_t item = NULLTAG;
tag_t* items= NULL;
const char* names[1] = { “item_id” }, *values[1] = { “Your Item number like 000001”};printf(“\nUtility Started…”);
iRetcode = ITK_init_module(“infodba”,”infodba password”,”dba”);
if(iRetcode != ITK_ok)
{
printf(“\nLogin Failed”);
}
else
{
printf(“\nLogin Successful.”);
iRetcode = ITEM_find_items_by_key_attributes(1, names, values, &n,&items);
if (n>0)
{
printf(“\nPart is present in Teamcenter”);
}
else
{
printf(“\nPart is not present in Teamcenter”);
}
if (n>0)
MEM_free(items);}
ITK_exit_module(TRUE);
printf(“\nUtility completed…”);
return iRetcode;}
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