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

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Get WTPart from MPMProcessPlan

asnoeckx
7-Bedrock

Get WTPart from MPMProcessPlan

How can I get the associated WTPart from an MPMProcessPlan programmatically?

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @asnoeckx 

 

The service is: 

QueryResult queryresult = MPMProcessPlanHelper.service.getWTParts(mpmProcesPlan);

PetrH 

View solution in original post

3 REPLIES 3

Hi @asnoeckx 

 

The service is: 

QueryResult queryresult = MPMProcessPlanHelper.service.getWTParts(mpmProcesPlan);

PetrH 

Thanks! This indeed gets me a long way, but if I am not mistaken, the query returns all versions of all related parts. Any chance I can find out the specific WTPart version linked to the plan?

 

Hi @asnoeckx 

 

The result contains all linked versions. So Your process plan is linked to iterations which are returned.

It does not mean that all versions of WTPart are returned. Only the linked one.

 

If you need specific version you need to filter it.

For example the latest revision/iteration.

 

PetrH 

 

 

Top Tags