Skip to main content
14-Alexandrite
March 8, 2024
Question

I need to retrive the Part from the BOM structure which are not having CAD Association.

  • March 8, 2024
  • 1 reply
  • 2614 views

"I need to retrieve the parts from the BOM structure that do not have a CAD association. Once identified, I want to associate an empty CAD assembly with each of these parts. The CAD association for each part should be named based on the respective part."

1 reply

HelesicPetr
22-Sapphire II
22-Sapphire II
March 8, 2024

Hi @AR_9920456 

If you need to find parts that do not have CAD from one BOM use the compare function "Compare to CAD Structure" from part detail page action menu.

HelesicPetr_0-1709884802195.png

 

Another way is to create a QureyBuilder report in the Windchill Report Management

The QueryBuilder report can be used in Advanced search and there you can interact with the result objects.  

here is a report how to search EPM Document without WTP but you can change the direction...

CS390356 - How to create Query Builder Report to find "EPM Document" which is not associated with a "WTPart" in Windchill PDMLink

also you can use a one level report together

CS72503 - Report to get the bill of material (BOM) report for latest iteration of latest version in Windchill PDMLink

 

report technique

Windchill Reporting Resource

 

an Another way is to write own code to report what you need 😄

 

PetrH

14-Alexandrite
March 8, 2024

any sample code to retrieve the parts which has not having CAD association

HelesicPetr
22-Sapphire II
22-Sapphire II
March 8, 2024

Hi @AR_9920456 

If you want to write a code, then don't care about retrieving what does not have a association.

get the full BOM and go through the bom and check if the association exists.

code to get owner association is 

 

QueryResult activeEMPDoc = PersistenceHelper.manager.navigate(sourceWTPart, EPMBuildRule.BUILD_SOURCE_ROLE, EPMBuildRule.class);

 

if the result is null or zero(empty) then the association does not exists

 

PetrH