Showing results for 
Search instead for 
Do you mean 
Reply
Solved! Go to solution

ITK : How to revise Item Revision, using ITK

Hi, thank you for reading this post.

I am learning ITK, so I am so beginner.

 

So I tray to create program to revice the Item Revision. 

But I have no idea about which function I should use. 

 

Could you tell me how to write programs to revise Item?

 

Also, now I am writing program to create BOM structure.

The following is the code.  But I failed to create BOM structure. 

 

/* Create child */
retcode = PS_create_bom_view(NULLTAG, view_name, view_desc, item2, &bom_view2);
retcode = AOM_save (bom_view2); 
retcode = AOM_save (item2);

retcode = PS_create_bvr(bom_view2, revision_name, revision_desc, precise, rev2, &bvr2);
retcode = AOM_save (bvr2);
retcode = AOM_save (bom_view2);
retcode = AOM_save (rev2);


/* Create Occurrences */
retcode = PS_create_occurrences(bvr, rev2, bom_view2, n_occurrences, &occurrences); //Error
retcode = AOM_save(bvr);
retcode = AOM_save(bvr2);


if(retcode = ITK_ok){
EMH_get_error_string( NULLTAG , retcode , &msg );
printf( "Error with ITEM__ask_key_for_ItemRevision: %s\n", msg );
}
i=0;
for(i=0; i<n_occurrences ; i++){
printf("tag_occurrences = %d \n", occurrences[i]);
}

 

 

2 REPLIES
Solution
Solution
Accepted by topic author Gimec
‎03-06-2016 09:09 PM

Re: ITK : How to revise Item Revision, using ITK

To Revise an Item, use these functions

ITEM_copy_rev()

ITEM_perform_deepcopy()

Re: ITK : How to revise Item Revision, using ITK

Thank you so much!!