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

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

WTPart -> WhereUsed related

AK_10131364
4-Participant

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 I
(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