Skip to main content
Dec 13, 2022 12:20 PM UTC
Solved

Get WTPart from MPMProcessPlan

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

Dec 14, 2022 9:27 AM UTC

Hi @asnoeckx 

 

The service is: 

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

PetrH 

3 replies

Dec 14, 2022 9:27 AM UTC

Hi @asnoeckx 

 

The service is: 

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

PetrH 

asnoeckxAuthor
Dec 16, 2022 7:48 AM UTC

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?

 

Dec 16, 2022 7:56 AM UTC

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