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

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

WTPart -> WhereUsed related

AK_10131364
5-Regular Member

WTPart -> WhereUsed related

I am using Windchill PDMLink Release 13.0 and Datecode with CPS 13.0.2.0

I have a requirement to get the list of latest parent parts in which a child Part is used . I am using below API call to get the list
QueryResult queryResult = StructHelper.service.navigateUsedByToIteration(part, true, new WhereUsedConfigSpec());

In addition to this , I also need to get list of parent Parts in which a child part is used as a Substitute Part
The navigation would be like this to[Part Usage Substitute].from[Part Usage].from

I wanted to know if there is any OOTB API which would help to get this data ?


Here are the errors that I faced
NA

ACCEPTED SOLUTION

Accepted Solutions

Hello,

 

Given a WTPartUsageLink, you can use the API described in article CS372288. This API navigates the substitutes role on wt.part.WTPartSubstituteLink to get the substitute parts for the input usage link. Please let me know if you have any questions regarding it and if this works well for you.

 

Thanks,

Justin

View solution in original post

2 REPLIES 2

Hello,

 

Given a WTPartUsageLink, you can use the API described in article CS372288. This API navigates the substitutes role on wt.part.WTPartSubstituteLink to get the substitute parts for the input usage link. Please let me know if you have any questions regarding it and if this works well for you.

 

Thanks,

Justin

Fadel
22-Sapphire II
(To:AK_10131364)

How about something like 

<Server>/Windchill/servlet/odata/ProdMgmt/Parts('OR:wt.part.WTPart:xxx')?$select=Identity&$expand=UsedBy($select=Name,Identity,FolderLocation,EndItem;$levels=1;$filter=Latest eq true) 

Fede
Announcements

Top Tags