ITK Programming for Change Ownership
#include<tc\tc.h>
#include<conio.h>
#include<tccore\item.h>
#include<tccore\aom.h>
#include<sa\group.h>
#include<stdio.h>
int ITK_user_main(int argc, char *argv[])
{
int iRetcode =ITK_ok;
tag_t item =NULLTAG;
tag_t tuser =NULLTAG;
tag_t tgroup =NULLTAG;
tag_t tRev =NULLTAG;
printf(“\nUtility Started…”);
iRetcode = ITK_init_module(“infodba”,”infodba”,”dba”);
if(iRetcode != ITK_ok)
{
printf(“\nLogin Failed”);
}
else
{
printf(“\nLogin Successful.”);
ITEM_find_item(“000001”,&item);
SA_find_user2(“globalplm”,&tuser);
SA_find_group(“Engineering”,&tgroup);
ITEM_find_rev(“000001″,”B”,&tRev);
AOM_set_ownership(item,tuser,tgroup);
AOM_set_ownership(tRev,tuser,tgroup);
}
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