ITK Programming-Item creation with help of TCTYPE API

 

 

 

 

 

 

 

 

 

 

 

     

  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


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 *