Quantcast
Channel: PTC Community: Message List - Windchill
Viewing all articles
Browse latest Browse all 8876

Re: How to search EPMDocument in folder or container using WC APIs

$
0
0

Hi Amit,

 

QuerySpec querySpec2 = new QuerySpec(EPMDocument.class);

/*SearchCondition condition = new SearchCondition(ContainerTeam.class,ContainerTeam.NAME, SearchCondition.LIKE,"%Sample_Product_02");

querySpec2.appendWhere(condition);*/

QueryResult queryResult2 = PersistenceServerHelper.manager.query(querySpec2);

while (queryResult2.hasMoreElements()) {

EPMDocument epmDocument = (EPMDocument) queryResult2.nextElement();

System.out.println("Part Name : "+ epmDocument.getCADName());

                              }

 

it only takes all the cad names (EPM Document).

but i cant able to fullfill your requirement.

 

Thank you

Vijayan


Viewing all articles
Browse latest Browse all 8876

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>