Quantcast
Channel: PTC Community : Unanswered Discussions - Windchill
Viewing all articles
Browse latest Browse all 3592

Query WTPart using SUBTYPE NAME

$
0
0

I previously queried WTPart using subtype reference:-

 

TypeDefinitionReference typeDefRef = TypedUtility.getTypeDefinitionReference("subtypename"));

  sc = new SearchCondition(WTPart.class,  "typeDefinitionReference.key.id", SearchCondition.EQUAL,  typeDefRef.getKey().getId());

 

 

however i now have a requirement to query this using subtype name directy as in:-

 

sc = new SearchCondition(WTPart.class, -----  WTPart.Subtype ------, .......);

 

is it possible?


Viewing all articles
Browse latest Browse all 3592

Trending Articles



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