ITK Programming for Create dataset only
#include<stdio.h>
#include<tc/tc.h>
#include<ae/datasettype.h>
#include<ae/dataset.h>
#include<tccore/aom.h>
#include<ae/ae.h>
int ITK_user_main(int argc, char *argv[])
{
int ifail=0;
tag_t tDatasettype=NULLTAG;
tag_t tNewDataset=NULLTAG;
ifail = ITK_init_module(“infodba”,”infodba password”,”dba”);
if(ifail != ITK_ok)
{
printf(“\nLogin Failed”);
}
else
{
printf(“\nLogin Successful.”);
ifail=AE_find_datasettype(“Text”,&tDatasettype);
if(ifail!= NULLTAG)
{
printf(“\ndataset type found”);
}
else
{
printf(“\ndataset type not found”);
}
ifail=AE_create_dataset_with_id(tDatasettype,”Test”, “Test_01″,”001″,”1” ,&tNewDataset);
if(ifail != NULLTAG)
{
printf(“\ndataset Created”);
}
else
{
printf(“\ndataset not created”);
}
AOM_refresh(tNewDataset,TRUE);
AOM_save(tNewDataset);
}
ITK_exit_module(TRUE);
printf(“\nUtility completed…”);
return 0;
}
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