Skip to main content
1-Visitor
September 11, 2013
Question

WTPart related part instances (WTProductInstance2) retreival

  • September 11, 2013
  • 4 replies
  • 1393 views

What is the API to retrieve all part instances (WTProductInstance2) for a given WTPart? I could not locate any information in the JavaDoc or customizer's guide.


Cory Skradski

4 replies

1-Visitor
September 11, 2013
Look at classes in wt.part package? Queryspec to get them directly using a join.


Sent from my Verizon Wireless 4G LTE Smartphone
1-Visitor
September 11, 2013

If I understand correctly, it may be possible for you to retrieve this information based on settings for the Iteration and Version parametersof the WindchillSearchService.search(SearchInfo) API. If you think this might address your question, you can find the documentation at the following location in the Windchill 10.1 Help Center on ptc.com:


http://www.ptc.com/cs/help/windchill_hc/wc101_hc/index.jspx?id=WCCG_UICust_CustSearch_solr&action=show


Regards,


Jane


Jane Zupfer
VP, Enterprise Products Publications

T
E -

1-Visitor
September 11, 2013
ConfigurationHelper.service.getAllInstances((ConfigurationManageable)wtpart)
;



Should retrieve all the instances.



Thank you and have a great time.

Best Regards

Swamy Senthil

Principal Solutions Architect, Swasen Inc

swamy.senthil@swasen.com(Email); 909 800 8423(M); 973 324 2729(W); 866
908 6561(F);




1-Visitor
September 11, 2013

Great! Thank you all for your suggestions/comments.


I think the ConfigurationHelper service interface will provide the capability I need.


Thanks again!


Cory Skradski