cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

How to get the Application data (content items) for CATIA V5 Design table instance, using WCA

SachinS
6-Contributor

How to get the Application data (content items) for CATIA V5 Design table instance, using WCA

This applies to Windchill 11.1 

I have tried the following code which seems to to work for Creo family table instances, at least for some demo objects provided in the Windchill OOTB, but not for CATIA design table instances.

For Creo this code works just fine for getting the family table object:

 

EPMSepFamilyTable familyTbl=null;
try {
  QueryResult results = EPMStructureHelper.service.navigateContainedIn(epmDocument, null, true);
  while(results.hasMoreElements()) {
    Object obj = results.nextElement();
    if (obj instanceof EPMSepFamilyTable) {
       familyTbl = (EPMSepFamilyTable)obj;
       log.error("Found family table object " + familyTbl);
   }
   else
      continue;
 }

} catch (WTException e) {
   log.error(e);
   throw e;
}

Is this the correct way to get family table object for CATIA Design table instance too ?

 

Also, when I do get a family table object, the following call returns null for the primary content

 

ContentHolder holder = ContentHelper.service.getContents(familyTbl);
ContentItem ci = ContentHelper.getPrimary((FormatContentHolder) holder);

//ci is always null for CATIA family table object

 

How do I extract the .CATPART and .xls Multiprimary content items from the family object. Any help is appreciated.

0 REPLIES 0
Announcements

Top Tags