Skip to main content
1-Visitor
November 30, 2015
Question

API to get Parent Part from Child Part

  • November 30, 2015
  • 2 replies
  • 3803 views

Hi All,

I am going to search Parent Part from Windchill, by providing a child part as an attribute to a program.

which method i have to use for getting Parent information from child.

How i can navigate in structure from bottom to Top.

Any help will be grate.

Regards,

Vivek

2 replies

2-Explorer
November 30, 2015

I think you can use wt.part.WTPartHelper.service.getUsedByWTParts(WTPartMaster partMaster)

Thank you,

Binesh Kumar

1-Visitor
December 7, 2015

Hi Binesh,

I am also looking for similar kind of solution to be used within a Validator.

I will have to hide an action when the value of an attribute on Parts Usage link is true.

If I use the above said API, I would all the parts that are being used in all the BOM's is there a way how I can get its immediate Parent from the structure?

Is there a way to achieve this?