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

Re: getting class cast Exception when casting WTPartMaster type of Object to WTPart

$
0
0

QueryResult linksQueryResult = VersionControlHelper.service.allVersionsOf(wtPartMaster);

WTPart wtPart = null;

boolean latestIteration = false;

while ((linksQueryResult.hasMoreElements()) && (!latestIteration))

{

  WTPart tempPart = (WTPart)linksQueryResult.nextElement();

  latestIteration = tempPart.isLatestIteration();

  if (latestIteration)

  {

       wtPart = tempPart;

  }

}


Viewing all articles
Browse latest Browse all 8876

Trending Articles



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