Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X
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.