cancel
Showing results for 
Search instead for 
Did you mean: 

How do I get the MEOPRevision ID, for a Form, using ITK?

Experimenter
Experimenter

I writing an ITK action handler that is extracting the properties from a Form.

The Form is attached to a MEOPRevision.

How do I get the MEOPRevision ID using ITK?

 

file-9.jpeg

 

Code for extracting properties:


if (strcmp(object_type, Standard_Op) == 0)
{
if(CheckStatus(target) == 0)
{
printf("Status is ok - not already signed off \n");
ifail = FORM_ask_prop_names(target, &n_prop_names, &prop_name );
CHECK_FAIL;
printf("%s%d%s","Here is ifail after Form_ask_prop_names : ", ifail, "\n");
printf("%s%d%s","Here is Number for property names",n_prop_names , "\n");

printf("\nY1: EXTRACT DATA FROM TEAMCENTER\n\n");
for ( x = 0 ; x < n_prop_names; x++ )
{
if(prop_name[x] != NULL)
{
printf("%s%s%s","Here is a prop name : ", prop_name[x] , "\n");
ifail = AOM_ask_displayable_values (target, prop_name[x], &num_values, &values);
printf("%s%s%s","Here is value : ", *values, "\n");

// START OF FORM PROPERTIES

//PROP 1
if( (strcmp(prop_name[x], "Setup_Time") == 0) )
{
sprintf(buf, "%s", *values);

sprintf_s(tc_Set_Time, 32, "%s", buf);
printf("tc_Set_Time = %s\n", tc_Set_Time);
}