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

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Translate the entire conversation x

Access Family Tree in Windchill

MV_10441462
12-Amethyst

Access Family Tree in Windchill

Hi all, I am working on a customized action that requires to download model data . Since the members of the family tree do not have model content data, I need to filter them. Can anybody suggest me ways to identity if a part belongs to family tree or get the model content of the base object?

ACCEPTED SOLUTION

Accepted Solutions
HelesicPetr
22-Sapphire II
(To:MV_10441462)

Hi @MV_10441462 

You can use easy way how to get the information if it is generic or instance

 

EPMDocument epmdocument = getEPMSomeHow();
boolean isGeneric= epmdocument.isGeneric();
boolean instance = epmdocument.isInstance();

 

If it is generic, then get the content, if it is not generic then check if it is instance. It it is instance, then ignore it or search for the generic. 

 

EPMStructureHelper.service.navigateGeneric(epmdocument, null, true);

 

PetrH

View solution in original post

2 REPLIES 2

What does this method say on the EPMDocument?

getFamilyTableStatus()

 

HelesicPetr
22-Sapphire II
(To:MV_10441462)

Hi @MV_10441462 

You can use easy way how to get the information if it is generic or instance

 

EPMDocument epmdocument = getEPMSomeHow();
boolean isGeneric= epmdocument.isGeneric();
boolean instance = epmdocument.isInstance();

 

If it is generic, then get the content, if it is not generic then check if it is instance. It it is instance, then ignore it or search for the generic. 

 

EPMStructureHelper.service.navigateGeneric(epmdocument, null, true);

 

PetrH

Announcements

Top Tags