Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X
How can I get the associated WTPart from an MPMProcessPlan programmatically?
Solved! Go to Solution.
Hi @asnoeckx
The service is:
QueryResult queryresult = MPMProcessPlanHelper.service.getWTParts(mpmProcesPlan);
PetrH
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