cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

How to get the part structure?

VladiSlav
17-Peridot

How to get the part structure?

Hello everyone.

Please tell me how to get the structure of the part and all the nested objects (drawings, documents)?

I tried the following solutions:

https://community.ptc.com/t5/Windchill/infoengine-query-related-CAD-documents/m-p/47381 

https://community.ptc.com/t5/Windchill/webject-question/td-p/403122

 

But I was able to get only a structure of parts without nested objects

2 REPLIES 2
BenLoosli
23-Emerald II
(To:VladiSlav)

I can do it interactively but have no idea where to even start with a toolkit app.

That said, if it can be done interactively, the tools should be in the toolkit to program it yourself.

 

@VladiSlav 

 

To be clear you have a WTPart structure and you want to recursively go though the entire structure all levels (not just the first level) and get all CAD Drawings (not CAD Assemblies not CAD Component) and WTDocuments that are linked to the parts in the structure.

You did not mention which filter you want to use so for now I'll assume Latest iteration of each Part.

 

I have written utilities that recursively get Part (or CAD Document) structures.

In the case of Part structures I have written bombproof utilities to get associated CAD Documents and WTDocument and then download attachments from the CAD Documents and WTDocuments.

 

So, what you want is doable but not OOTB.

I know that's not really an answer that resolves how to do it but a full "how to" answer is outside the scope of what I up for writing in this thread. It's not trivial.

 

If you want more info feel free contact me from your work email at

windchill.developer@yahoo.com 

 

David

Top Tags