Skip to main content
8-Gravel
June 30, 2025
Question

PartBuilder and NavigationCriteria to get only leaf nodes and part of specific type

  • June 30, 2025
  • 2 replies
  • 265 views

Hi All, I am trying to build a Part Structure Iterator module that recursively iterates a Part structures and returns all the parts under them using the combination PartBuilder and Navigation Criteria. I found this quicker compared to WTPartHelper.service.getUsesWTParts. Now I want to customize it further by adding methods that return only leaf nodes(parts that do not have any children) and parts of a specific type. Anybody got any simpler solution? like playing with Navigation criteria?

2 replies

Fadel
23-Emerald I
July 1, 2025

you can use some approach as in https://community.ptc.com/t5/Windchill/Finding-Bom-Headers/m-p/991286#M83459%3Fsource=search 

for finding leaf parts . 

Buiꓘa
Catalina
Community Moderator
July 8, 2025

Hi @VM_13704617 ,

I wanted to see if you got the help you needed.

If so, please mark the appropriate reply as the Accepted Solution or please feel free to detail in a reply what has helped you and mark it as the Accepted Solution. It will help other members who may have the same question.


Of course, if you have more to share on your issue, please pursue the conversation.

Thanks,

Catalina | PTC Community Moderator