Saturday, 24 December 2016

Teamcenter ITK : Workspace Object Search

Problem Statement : Find out the workspace object in Teamcenter.
Code snap :
 {
        int error_code;
        int number_found;
        tag_t* list_of_WSO_tags;

        WSOM_search_criteria_t criteria;
        
        //This function initializes a search criteria structure. 
        //This would be used in preparation for doing another search
        WSOM_clear_search_criteria(criteria);
        strcpy(criteria.name,"My Friend's Current Design");

       //Returns an array of POMObject or subclasses of POMObject tags
       //that match the previously specified search criteria
        error_code = WSOM_search(criteria, &number_found,&list_of_WSO_tags);

        MEM_free(list_of_WSO_tags); //This is important
    } 

No comments:

Post a Comment