Skip to main content
14-Alexandrite
May 16, 2024
Question

Finding WTPart Relationship in CAD Document Retrieval

  • May 16, 2024
  • 1 reply
  • 1260 views

I can retrieve CAD documents via http://******/Windchill/servlet/odata/CADDocumentMgmt/CADDocuments('OR:wt.epm.EPMDocument:******')?$expand=Attachments and obtain detailed information such as PDFs. However, there's an issue as it doesn't display the relationship of the part with its WTPart. How can I find out which ID it's connected to or what information it's linked to on the WTPart? Could you assist me with this?

1 reply

17-Peridot
May 16, 2024

Owner relationship.PNG

(In the above, ignore the 'OEM Part' table.)

You are looking for a relationship established by the EPMBuild Rule wt.epm.build.EPMBuildRule.

I don't have the OData manual open at the moment but I would be looking to expand something with a name like that. 

More specifically, you will be looking for an Owner relationship.

 

I find this all easier to access via QueryBuilder reports, and they can be run using OData or other REST API's.

 

ozclkonur14-AlexandriteAuthor
14-Alexandrite
May 16, 2024

So where do I get the owner IDs from? The branchids of the DRAWING data are not displayed in the EPMBuildRule table ?

HelesicPetr
22-Sapphire II
22-Sapphire II
May 28, 2024

Hi @ozclkonur 

EPMBuildRule is a link between EPM Document and WTPart

If the drawing is referenced to model, then there is a different link - EPMReferenceLink. 

If the drawing is linked directly to the WTPart then the link is the EPMBuildRule 

PetrH