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

Re: MultiLevel BOM Report

$
0
0

Hi Sandeep,

 

Use this code

 

publicstaticvoid getChildParts(WTPart parentPart) throws WTException

     {

           @SuppressWarnings("deprecation")

           QueryResult queryResult= WTPartHelper.service.getUsesWTParts(parentPart, new LatestConfigSpec());

        while(queryResult.hasMoreElements())

        {

                        WTPart part=null;

                        Persistable[] persistable=(Persistable[])queryResult.nextElement();

part=(WTPart)persistable[1];

                        WTPartUsageLink partLink=(WTPartUsageLink)persistable[0];

                        System.out.println("ParentPart :-" + parentPart.getName() + " ChildPart :- " + part.getName());

                        getChildParts(part);

        }

     }

 

Regards,

Kaushik


Viewing all articles
Browse latest Browse all 8876

Trending Articles



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