Skip to main content
12-Amethyst
January 13, 2025
Solved

Access Family Tree in Windchill

  • January 13, 2025
  • 2 replies
  • 511 views

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?

Best answer by HelesicPetr

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

2 replies

avillanueva
23-Emerald I
23-Emerald I
January 14, 2025

What does this method say on the EPMDocument?

getFamilyTableStatus()

 

HelesicPetr
22-Sapphire II
22-Sapphire II
January 15, 2025

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