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

Bug while using QueryResult

$
0
0

Hello,

I have got strange exception while using wt.fc.QueryResult class. In code below it returns type [Lwt.fc.Persistable; (with symbols) instead wt.fc.Persistable

 

protected void collectEntrance() {

   try {

  QueryResult qr = WTPartHelper.service.getUsesWTParts(part, new LatestConfigSpec());

   while (qr.hasMoreElements()) {

  WTPart nextPart = (WTPart) qr.nextElement();

   //TODO:remove with specification element
   switch (nextPart.getPartType().toString()) {

   case "separable":

   structure.add(new Assembly(nextPart, part));

   break;

   case "detail":

   structure.add(new Detail(nextPart, part));

   break;

  }

  }

  } catch (WTException e) {

  e.printStackTrace();

  }

}

 

What should I do?

Thanks.


Viewing all articles
Browse latest Browse all 3592

Trending Articles



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