Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! 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
avillanueva
22-Sapphire III
(To:MV_10441462)

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